]> git.lizzy.rs Git - rust.git/commitdiff
rustup
authorRalf Jung <post@ralfj.de>
Tue, 12 Oct 2021 15:39:06 +0000 (11:39 -0400)
committerRalf Jung <post@ralfj.de>
Tue, 12 Oct 2021 15:39:06 +0000 (11:39 -0400)
rust-version
tests/run-pass/too-large-primval-write-problem.rs

index fdd83d70814242bcb90622db7738e634829349e2..a51e57fd461be4100922be4fc480d82c0cf8daf8 100644 (file)
@@ -1 +1 @@
-0157cc977fd71297ce73e2f249321f5ba2555d42
+9475e609b8458fff9e444934a6017d2e590642cf
index ebd6dbb61ee4e745338b276caf3d3ce23ea2e038..f4c418bd78a99a6511e334cc0e0863df78ea9d7c 100644 (file)
@@ -16,7 +16,7 @@ fn main() {
     let bad = unsafe { transmute::<i32, *const u8>(-x) };
 
     // Force it through the Memory::write_primval code.
-    Box::new(bad);
+    drop(Box::new(bad));
 }
 
 #[cfg(not(target_pointer_width = "32"))]