Auto merge of #1973 - RalfJung:rustup, r=RalfJung

implement const_allocate intrinsic

This is needed to make the libcore test suite pass again.
This commit is contained in:
bors 2022-02-12 10:54:24 +00:00
commit 2ba1e843c1
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
4e8fb743ccbec27344b2dd42de7057f41d4ebfdd
78450d2d602b06d9b94349aaf8cece1a4acaf3a8

View File

@ -54,6 +54,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
let right = this.read_immediate(right)?;
this.binop_ignore_overflow(mir::BinOp::Ne, &left, &right, dest)?;
}
"const_allocate" => {
// For now, for compatibility with the run-time implementation of this, we just return null.
// See <https://github.com/rust-lang/rust/issues/93935>.
this.write_null(dest)?;
}
// Raw memory accesses
"volatile_load" => {