Skip to content

Commit 3466462

Browse files
committed
rustup, fix test
1 parent 9123f0e commit 3466462

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18b0585b52741ca158dfebef7968326e2704352e
1+
d9cd4a33f53689bc0847775669a14f666a138fd7

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn into_interior_mutability() {
5454
let mut x: MaybeUninit<(Cell<u32>, u32)> = MaybeUninit::uninit();
5555
x.as_ptr();
5656
x.write((Cell::new(0), 1));
57-
let ptr = unsafe { x.get_ref() };
57+
let ptr = unsafe { x.assume_init_ref() };
5858
assert_eq!(ptr.1, 1);
5959
}
6060

0 commit comments

Comments
 (0)