diff --git a/src/concurrency/data_race.rs b/src/concurrency/data_race.rs index 3f05925d343..90b38225105 100644 --- a/src/concurrency/data_race.rs +++ b/src/concurrency/data_race.rs @@ -1061,7 +1061,7 @@ fn validate_atomic_op( if let Some(data_race) = &this.machine.data_race { if data_race.race_detecting() { let size = place.layout.size; - let (alloc_id, base_offset, _tag) = this.ptr_get_alloc_id(place.ptr)?; + let (alloc_id, base_offset, _prov) = this.ptr_get_alloc_id(place.ptr)?; // Load and log the atomic operation. // Note that atomic loads are possible even from read-only allocations, so `get_alloc_extra_mut` is not an option. let alloc_meta = this.get_alloc_extra(alloc_id)?.data_race.as_ref().unwrap(); diff --git a/src/shims/backtrace.rs b/src/shims/backtrace.rs index 3c15165d67b..c5aab255aaf 100644 --- a/src/shims/backtrace.rs +++ b/src/shims/backtrace.rs @@ -123,7 +123,7 @@ fn resolve_frame_pointer( let ptr = this.read_pointer(ptr)?; // Take apart the pointer, we need its pieces. - let (alloc_id, offset, _tag) = this.ptr_get_alloc_id(ptr)?; + let (alloc_id, offset, _prov) = this.ptr_get_alloc_id(ptr)?; let fn_instance = if let Some(GlobalAlloc::Function(instance)) = this.tcx.get_global_alloc(alloc_id) {