Fix 'FIXME' about using NonZeroU32 instead of u32.#76851
Merged
bors merged 2 commits intorust-lang:masterfrom Oct 2, 2020
Merged
Fix 'FIXME' about using NonZeroU32 instead of u32.#76851bors merged 2 commits intorust-lang:masterfrom
bors merged 2 commits intorust-lang:masterfrom
Conversation
It was blocked by rust-lang#58732 (const fn NonZeroU32::new), which is fixed now.
Contributor
|
(rust_highfive has picked a reviewer for you, use r? to override) |
dtolnay
approved these changes
Oct 1, 2020
Member
dtolnay
left a comment
There was a problem hiding this comment.
I like this. Having the Feature::issue field make 0 impossible to store is an improvement, even if to_nonzero is needed. A const and_then is likely much further out as it involves figuring out how to do a const callable FnOnce -- related to rust-lang/rfcs#2632 I guess.
dtolnay
reviewed
Oct 1, 2020
Co-authored-by: David Tolnay <[email protected]>
Contributor
|
@bors r+ |
Collaborator
|
📌 Commit 2140d80 has been approved by |
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this pull request
Oct 1, 2020
…ero, r=petrochenkov Fix 'FIXME' about using NonZeroU32 instead of u32. It was blocked by rust-lang#58732 (const fn NonZeroU32::new), which is fixed now.
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Oct 2, 2020
Rollup of 11 pull requests Successful merges: - rust-lang#76851 (Fix 'FIXME' about using NonZeroU32 instead of u32.) - rust-lang#76979 (Improve std::sys::windows::compat) - rust-lang#77111 (Stabilize slice_ptr_range.) - rust-lang#77147 (Split sys_common::Mutex in StaticMutex and MovableMutex.) - rust-lang#77312 (Remove outdated line from `publish_toolstate` hook) - rust-lang#77362 (Fix is_absolute on WASI) - rust-lang#77375 (rustc_metadata: Do not forget to encode inherent impls for foreign types) - rust-lang#77385 (Improve the example for ptr::copy) - rust-lang#77389 (Fix some clippy lints) - rust-lang#77399 (BTreeMap: use Unique::from to avoid a cast where type information exists) - rust-lang#77429 (Link `new` method in `DefautHasher`s doc) Failed merges: r? `@ghost`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It was blocked by #58732 (const fn NonZeroU32::new), which is fixed now.