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.
1 parent a28aa95 commit 0bd5a21Copy full SHA for 0bd5a21
src/constant.rs
@@ -133,7 +133,7 @@ pub(crate) fn codegen_const_value<'tcx>(
133
}
134
135
Scalar::Ptr(ptr, _size) => {
136
- let (prov, offset) = ptr.into_parts(); // we know the `offset` is relative
+ let (prov, offset) = ptr.prov_and_relative_offset();
137
let alloc_id = prov.alloc_id();
138
let base_addr = match fx.tcx.global_alloc(alloc_id) {
139
GlobalAlloc::Memory(alloc) => {
0 commit comments