-
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
Merge BorrowKind::Unique
into BorrowKind::Mut
#112119
Merge BorrowKind::Unique
into BorrowKind::Mut
#112119
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras Some changes might have occurred in exhaustiveness checking cc @Nadrieril |
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.
I commented on places I'm not sure.
0ec3a2d
to
c12feb5
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.
quickly skimmed it but need to take some time to think about the places where Unique
currently differs from Mut
, will only get to that next week probably
From my intuition, So here's some personal observation:
|
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.
I am not sure whether specialcasing ClosureCapture
borrows this much in compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs is necessary or even particularily helpful, but 🤷
after dealing with the comments, r=me
thank you for working on this ❤️
we should also run crater after the remaining changes as I expect the unsafeck and const checks to be theoretically breaking. Don't have the capacity to try and get an actual test for that though |
e34c364
to
ed3d78f
Compare
@rustbot label -S-waiting-on-author +S-waiting-on-review
Const checks should be ok, since we forbid |
@bors try |
⌛ Trying commit 9ce76438c3537c38c0614036add7cbe790cbdfd7 with merge d43518feaed04ed9d50bf2337350de8304ca58cf... |
9ce7643
to
d93e93b
Compare
@bors try |
⌛ Trying commit d93e93b3c821de824a888eae65a05f9687ad940c with merge ca6d8d30c65b4fcf60d8a40774045a936ec3c78d... |
☀️ Try build successful - checks-actions |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
looked at a bunch and they all looked spurious, didn't get a nice testcase for them r=me after rebase |
d93e93b
to
b8a250f
Compare
@bors r+ rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c55d1ee): 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.
CyclesResultsThis 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 657.959s -> 655.662s (-0.35%) |
Fixes #112072
Might have conflict with #112070
r? @lcnr
I'm not sure what's the suitable change in a couple places.