Do not call the const_eval query in mir interpretation except for caching of nulary intrinsics

This commit is contained in:
Oliver Scherer
2020-08-10 12:40:14 +02:00
parent a6c60bbe5d
commit dd9702a059
4 changed files with 8 additions and 34 deletions

View File

@@ -51,7 +51,7 @@ impl<'mir, 'tcx> InterpCx<'mir, 'tcx, CompileTimeInterpreter<'mir, 'tcx>> {
let gid = GlobalId { instance, promoted: None };
let place = self.const_eval_raw(gid)?;
let place = self.const_eval(gid)?;
self.copy_op(place.into(), dest)?;