]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/miri/src/borrow_tracker/stacked_borrows/diagnostics.rs
Auto merge of #105127 - Sp00ph:const_new, r=dtolnay
[rust.git] / src / tools / miri / src / borrow_tracker / stacked_borrows / diagnostics.rs
index 9a7b38b13a3ade0d98fd88f702e9f14dfffde491..24b3489e0d1d67e61503017feb699a39bfc0b7f7 100644 (file)
@@ -459,10 +459,10 @@ pub fn check_tracked_tag_popped(&self, item: &Item, global: &GlobalStateInner) {
             Operation::Dealloc(_) => format!(" due to deallocation"),
             Operation::Access(AccessOp { kind, tag, .. }) =>
                 format!(" due to {kind:?} access for {tag:?}"),
-            Operation::Retag(RetagOp { orig_tag, permission, .. }) => {
+            Operation::Retag(RetagOp { orig_tag, permission, new_tag, .. }) => {
                 let permission = permission
                     .expect("start_grant should set the current permission before popping a tag");
-                format!(" due to {permission:?} retag from {orig_tag:?}")
+                format!(" due to {permission:?} retag from {orig_tag:?} (that retag created {new_tag:?})")
             }
         };