Auto merge of #1533 - RalfJung:rustup, r=RalfJung
rustup, fix test Cc https://github.com/rust-lang/rust/issues/76190
This commit is contained in:
commit
0a4ecfc225
@ -1 +1 @@
|
||||
18b0585b52741ca158dfebef7968326e2704352e
|
||||
d9cd4a33f53689bc0847775669a14f666a138fd7
|
||||
|
@ -54,7 +54,7 @@ fn into_interior_mutability() {
|
||||
let mut x: MaybeUninit<(Cell<u32>, u32)> = MaybeUninit::uninit();
|
||||
x.as_ptr();
|
||||
x.write((Cell::new(0), 1));
|
||||
let ptr = unsafe { x.get_ref() };
|
||||
let ptr = unsafe { x.assume_init_ref() };
|
||||
assert_eq!(ptr.1, 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user