Skip to content

Commit 1f6ce43

Browse files
committed
Auto merge of #1553 - RalfJung:rustup, r=RalfJung
rustup Cc `@oli-obk`
2 parents 7942e77 + b0baa15 commit 1f6ce43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a3bc0e752fad96f537b73f4e9bc805a73d404f7b
1+
5e449b9adff463455743291b0c1f76feec092992

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
5959
let this = self.eval_context_mut();
6060
let instance = this.resolve_path(path);
6161
let cid = GlobalId { instance, promoted: None };
62-
let const_val = this.const_eval_raw(cid)?;
62+
let const_val = this.eval_to_allocation(cid)?;
6363
let const_val = this.read_scalar(const_val.into())?;
6464
return Ok(const_val);
6565
}

0 commit comments

Comments
 (0)