-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
fix VecDeque::iter_mut aliasing issues #76911
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@KodrAus maybe you could help review this? |
☔ The latest upstream changes (presumably #77557) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
c2e0609
to
69669cb
Compare
@rust-lang/compiler this PR needs a reviewer :) The first two seem to be busy. |
r? @oli-obk |
@@ -1175,6 +1183,7 @@ impl<T> VecDeque<T> { | |||
head, | |||
// The shared reference we have in &mut self is maintained in the '_ of IterMut. | |||
ring: unsafe { self.buffer_as_mut_slice() }, |
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.
The same "no need for unsafe or reference" change applies here, too
r=me with the second |
20e03b7
to
242b2b9
Compare
Good catch! @bors r=oli-obk |
📌 Commit 242b2b95f9919aa5bf9a8259eb65071576d91981 has been approved by |
@bors rollup |
@bors r- |
242b2b9
to
fa6a4f7
Compare
ran rustfmt |
📌 Commit fa6a4f7 has been approved by |
Rollup of 11 pull requests Successful merges: - rust-lang#76784 (Add some docs to rustdoc::clean::inline and def_id functions) - rust-lang#76911 (fix VecDeque::iter_mut aliasing issues) - rust-lang#77400 (Fix suggestions for x.py setup) - rust-lang#77515 (Update to chalk 0.31) - rust-lang#77568 (inliner: use caller param_env) - rust-lang#77571 (Use matches! for core::char methods) - rust-lang#77582 (Move `EarlyOtherwiseBranch` to mir-opt-level 2) - rust-lang#77590 (Update RLS and Rustfmt) - rust-lang#77605 (Fix rustc_def_path to show the full path and not the trimmed one) - rust-lang#77614 (Let backends access span information) - rust-lang#77624 (Add c as a shorthand check alternative for new options rust-lang#77603) Failed merges: r? `@ghost`
test VecDeque::iter_mut aliasing Blocked on rust-lang/rust#76911
Fixes #74029