mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
+1
-1
@@ -1 +1 @@
|
||||
a3bc0e752fad96f537b73f4e9bc805a73d404f7b
|
||||
5e449b9adff463455743291b0c1f76feec092992
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ fn eval_path_scalar(
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user