-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stabilize generic NonZero
.
#124230
Stabilize generic NonZero
.
#124230
Conversation
The Miri subtree was changed cc @rust-lang/miri |
6349bfb
to
fca5bab
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
386e822
to
09df014
Compare
This comment has been minimized.
This comment has been minimized.
9e4a7c6
to
2265ecb
Compare
This comment has been minimized.
This comment has been minimized.
2265ecb
to
636f99c
Compare
636f99c
to
33e68aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done. Thank you for all your work on this feature.
@bors r+ |
…llaumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#115913 (checked_ilog: improve performance) - rust-lang#124178 ([cleanup] [llvm backend] Prevent creating the same `Instance::mono` multiple times) - rust-lang#124183 (Stop taking `ParamTy`/`ParamConst`/`EarlyParamRegion`/`AliasTy` by ref) - rust-lang#124217 (coverage: Prepare for improved branch coverage) - rust-lang#124230 (Stabilize generic `NonZero`.) - rust-lang#124252 (Improve ICE message for forbidden dep-graph reads.) - rust-lang#124268 (Update books) r? `@ghost` `@rustbot` modify labels: rollup
…llaumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#115913 (checked_ilog: improve performance) - rust-lang#124178 ([cleanup] [llvm backend] Prevent creating the same `Instance::mono` multiple times) - rust-lang#124183 (Stop taking `ParamTy`/`ParamConst`/`EarlyParamRegion`/`AliasTy` by ref) - rust-lang#124217 (coverage: Prepare for improved branch coverage) - rust-lang#124230 (Stabilize generic `NonZero`.) - rust-lang#124252 (Improve ICE message for forbidden dep-graph reads.) - rust-lang#124268 (Update books) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124230 - reitermarkus:generic-nonzero-stable, r=dtolnay Stabilize generic `NonZero`. Tracking issue: rust-lang#120257 r? `@dtolnay`
Just noticed this after a few month after stabilization by seeing them from rust-analyzer completions. It has quite a poor discoverability for us old users familiar with NonZero*. Do we want to deprecate the old NonZero* (which are now type aliases. Is it possible?) to improve discoverability, or, if that's too intrusive, could we add a clippy warning for that? There's some discussion on clippy side already: rust-lang/rust-clippy#13019 |
I already tried deprecating it, see #124587 (comment). Adding a clippy lint seems like a good start. |
Tracking issue: #120257
r? @dtolnay