]> git.lizzy.rs Git - rust.git/commitdiff
implement const_deallocate as a NOP
authorRalf Jung <post@ralfj.de>
Sat, 12 Feb 2022 11:17:37 +0000 (12:17 +0100)
committerRalf Jung <post@ralfj.de>
Sat, 12 Feb 2022 11:17:37 +0000 (12:17 +0100)
src/shims/intrinsics.rs

index d0d35dc45817d6ba86922bb9ac84d36471542e84..df41a88aeeb61fe2de686618e2cd4f94c10d0c63 100644 (file)
@@ -59,6 +59,9 @@ fn call_intrinsic(
                 // See <https://github.com/rust-lang/rust/issues/93935>.
                 this.write_null(dest)?;
             }
+            "const_deallocate" => {
+                // complete NOP
+            }
 
             // Raw memory accesses
             "volatile_load" => {