We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0adfe4 commit 3cf413eCopy full SHA for 3cf413e
tests/run-pass/stacked-borrows/stacked-borrows.rs
@@ -119,9 +119,6 @@ fn direct_mut_to_const_raw() {
119
// Make sure that we can create two raw pointers from a mutable reference and use them both.
120
fn two_raw() { unsafe {
121
let x = &mut 0;
122
- // Given the implicit reborrows, the only reason this currently works is that we
123
- // do not track raw pointers: The creation of `y2` reborrows `x` and thus pops
124
- // `y1` off the stack.
125
let y1 = x as *mut _;
126
let y2 = x as *mut _;
127
*y1 += 2;
0 commit comments