We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b87f756 + d8c129a commit b506146Copy full SHA for b506146
src/constant.rs
@@ -134,7 +134,7 @@ pub(crate) fn codegen_const_value<'tcx>(
134
}
135
136
Scalar::Ptr(ptr, _size) => {
137
- let (prov, offset) = ptr.into_parts(); // we know the `offset` is relative
+ let (prov, offset) = ptr.prov_and_relative_offset();
138
let alloc_id = prov.alloc_id();
139
let base_addr = match fx.tcx.global_alloc(alloc_id) {
140
GlobalAlloc::Memory(alloc) => {
0 commit comments