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:
commit
2ba1e843c1
@ -1 +1 @@
|
||||
4e8fb743ccbec27344b2dd42de7057f41d4ebfdd
|
||||
78450d2d602b06d9b94349aaf8cece1a4acaf3a8
|
||||
|
@ -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" => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user