We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c83241a commit 55f0977Copy full SHA for 55f0977
compiler/rustc_const_eval/src/const_eval/mod.rs
@@ -38,7 +38,7 @@ pub(crate) fn const_caller_location(
38
if intern_const_alloc_recursive(&mut ecx, InternKind::Constant, &loc_place).is_err() {
39
bug!("intern_const_alloc_recursive should not error in this case")
40
}
41
- ConstValue::Scalar(Scalar::from_pointer(loc_place.ptr.into_pointer_or_addr().unwrap(), &tcx))
+ ConstValue::Scalar(Scalar::from_maybe_pointer(loc_place.ptr, &tcx))
42
43
44
/// Convert an evaluated constant to a type level constant
0 commit comments