-
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
[experiment] Add MustClone and impl Copy+MustClone on Range{,From,Inclusive}. #77180
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors try |
⌛ Trying commit 6cdd05313a732178776903a10d41edf154eea341 with merge 715ad67e8b83d57e72e8d58387d01d804162f99a... |
Oh and since this may require a fast path to not regress perf: @rust-timer queue |
Awaiting bors try build completion |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors try |
⌛ Trying commit 346ede0 with merge 6dab9ef81bafc73ee769b24a6ad263eca85520b4... |
☀️ Try build successful - checks-actions, checks-azure |
Queued 6dab9ef81bafc73ee769b24a6ad263eca85520b4 with parent 521d8d8, future comparison URL. |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
Finished benchmarking try commit (6dab9ef81bafc73ee769b24a6ad263eca85520b4): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
I like the general direction here, but I also agree with rust-lang/rfcs#2848 (comment) that it feels more like an "attribute + lint" case rather than a "trait + move error (?)", especially given that the trait is not used in generic context, only on concrete instances of ranges. |
🎉 Experiment
|
One root regression due to |
Thanks! At least it being a lint means it shouldn't impact any crates that depend on So we should be able to proceed here with an RFC or similar - though at the moment I don't have the bandwidth for anything like that, but if someone is interested in writing a |
I'm closing this experiment PR, please continue discussion over at rust-lang/rfcs#2848 (comment), to avoid fragmentation. |
Background: (second half of) rust-lang/rfcs#2848 (comment).
I'm opening this for two reasons:
Range<_>: Copy
breaks something through e.g. inference