commit
1f6ce43721
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
a3bc0e752fad96f537b73f4e9bc805a73d404f7b
|
||||
5e449b9adff463455743291b0c1f76feec092992
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
|||
let this = self.eval_context_mut();
|
||||
let instance = this.resolve_path(path);
|
||||
let cid = GlobalId { instance, promoted: None };
|
||||
let const_val = this.const_eval_raw(cid)?;
|
||||
let const_val = this.eval_to_allocation(cid)?;
|
||||
let const_val = this.read_scalar(const_val.into())?;
|
||||
return Ok(const_val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue