]> git.lizzy.rs Git - rust.git/commitdiff
rustup
authorRalf Jung <post@ralfj.de>
Thu, 29 Oct 2020 19:57:38 +0000 (20:57 +0100)
committerRalf Jung <post@ralfj.de>
Thu, 29 Oct 2020 19:57:38 +0000 (20:57 +0100)
rust-version
tests/run-pass/box.rs
tests/run-pass/dyn-traits.rs

index 44e9a77940d6e7842e6134c694f48d14f233e6f7..40aa78ae9a9c3a13ff930be45d0b9791fd6702a3 100644 (file)
@@ -1 +1 @@
-17cc9b6256c95c31944591aec683884fead4e3b6
+a53fb30e3bf2655b0563da6d561c23cda5f3ec11
index b89c0ac1286ebe5204339e974a2b50611e9c858c..c29a83507677f9638f518c85658223a2a6fbbc9b 100644 (file)
@@ -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;
index 33d1f4fc1cf0caac47eb0a21da611c0d7f68b231..51c2130bcd3f3d0e3d124ddb740da8bf4f3523e2 100644 (file)
@@ -1,4 +1,5 @@
-#![feature(unsized_locals)]
+#![feature(unsized_locals, unsized_fn_params)]
+#![allow(incomplete_features)]
 
 fn ref_box_dyn() {
     struct Struct(i32);