Skip to content

Commit 0a4ecfc

Browse files
committed
Auto merge of #1533 - RalfJung:rustup, r=RalfJung
rustup, fix test Cc rust-lang/rust#76190
2 parents 9123f0e + 3466462 commit 0a4ecfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18b0585b52741ca158dfebef7968326e2704352e
1+
d9cd4a33f53689bc0847775669a14f666a138fd7

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

+1-1
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)