-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Use generic NonZero
internally.
#120486
Use generic NonZero
internally.
#120486
Conversation
r? @cuviper (rustbot has picked a reviewer for you, use r? to override) |
The Miri subtree was changed cc @rust-lang/miri This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino, @ouz-a Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
739bec2
to
36830f4
Compare
This comment has been minimized.
This comment has been minimized.
36830f4
to
96ed2ed
Compare
This comment has been minimized.
This comment has been minimized.
96ed2ed
to
155c7fc
Compare
This comment has been minimized.
This comment has been minimized.
What's the motivation for this? We can't remove the type specific versions from libstd anyway, so we could just keep using them unless some code needs to be generic over the integer. |
155c7fc
to
770e71b
Compare
Yes, we can't remove it. My assumption is that the type aliases will be deprecated at some point once generic Even if they are not deprecated, the examples in the docs will be changed to show generic |
This comment has been minimized.
This comment has been minimized.
770e71b
to
5bfa723
Compare
This comment has been minimized.
This comment has been minimized.
IMO, it's not worth the churn until the generic And even then, I think it would be better to split the PR across different components for separate review. |
@bors r- |
@bors r=dtolnay |
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.
Thank you!
Sorry about the 1-week bors queue 🙁 that is unusually long.
…r=dtolnay Use generic `NonZero` internally. Tracking issue: rust-lang#120257
☀️ Test successful - checks-actions |
Finished benchmarking commit (1be4688): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 637.219s -> 637.782s (0.09%) |
Tracking issue: #120257