From 34664623066a762235004c08d0b9a188c0d65d2a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 1 Sep 2020 10:55:09 +0200 Subject: [PATCH] rustup, fix test --- rust-version | 2 +- tests/run-pass/stacked-borrows/interior_mutability.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust-version b/rust-version index f5fb708740..6e9f26cbe4 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -18b0585b52741ca158dfebef7968326e2704352e +d9cd4a33f53689bc0847775669a14f666a138fd7 diff --git a/tests/run-pass/stacked-borrows/interior_mutability.rs b/tests/run-pass/stacked-borrows/interior_mutability.rs index bd19f153de..17e628a09f 100644 --- a/tests/run-pass/stacked-borrows/interior_mutability.rs +++ b/tests/run-pass/stacked-borrows/interior_mutability.rs @@ -54,7 +54,7 @@ fn into_interior_mutability() { let mut x: MaybeUninit<(Cell, 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); }