From 1ad827c511bdde7ddca7010da7320f2051fc58d4 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 29 Oct 2020 20:57:38 +0100 Subject: [PATCH] rustup --- rust-version | 2 +- tests/run-pass/box.rs | 2 +- tests/run-pass/dyn-traits.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rust-version b/rust-version index 44e9a77940d..40aa78ae9a9 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -17cc9b6256c95c31944591aec683884fead4e3b6 +a53fb30e3bf2655b0563da6d561c23cda5f3ec11 diff --git a/tests/run-pass/box.rs b/tests/run-pass/box.rs index b89c0ac1286..c29a8350767 100644 --- a/tests/run-pass/box.rs +++ b/tests/run-pass/box.rs @@ -21,7 +21,7 @@ fn into_raw() { unsafe { fn into_unique() { unsafe { let b = Box::new(4i32); - let u = Box::into_unique(b); + let u = Box::into_unique(b).0; // "lose the tag" let r = ((u.as_ptr() as usize)+0) as *mut i32; diff --git a/tests/run-pass/dyn-traits.rs b/tests/run-pass/dyn-traits.rs index 33d1f4fc1cf..51c2130bcd3 100644 --- a/tests/run-pass/dyn-traits.rs +++ b/tests/run-pass/dyn-traits.rs @@ -1,4 +1,5 @@ -#![feature(unsized_locals)] +#![feature(unsized_locals, unsized_fn_params)] +#![allow(incomplete_features)] fn ref_box_dyn() { struct Struct(i32);