Skip to content

Commit 3cf413e

Browse files
committed
remove inadequate comment
1 parent e0adfe4 commit 3cf413e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/run-pass/stacked-borrows/stacked-borrows.rs

-3
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ fn direct_mut_to_const_raw() {
119119
// Make sure that we can create two raw pointers from a mutable reference and use them both.
120120
fn two_raw() { unsafe {
121121
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.
125122
let y1 = x as *mut _;
126123
let y2 = x as *mut _;
127124
*y1 += 2;

0 commit comments

Comments
 (0)