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:
bors 2020-09-01 08:58:35 +00:00
commit 0a4ecfc225
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
18b0585b52741ca158dfebef7968326e2704352e
d9cd4a33f53689bc0847775669a14f666a138fd7

View File

@ -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);
}