about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2025-06-08 17:17:54 -0700
committerGitHub <noreply@github.com>2025-06-08 17:17:54 -0700
commited61e50224f2ff01714082c03bf867d3a18f8881 (patch)
tree8a959173dca7a89420dd680a608fad18d7032f43
parent41bc5d7f7327d0fe3545c600b0279dda534ab06a (diff)
parentd945c8562b49df98af25ed43b41bdbc59b8385cc (diff)
Rollup merge of #142108 - workingjubilee:track-caller-in-abi-map, r=jieyouxu
compiler: Add track_caller to AbiMapping::unwrap

Same reason as it is on Option's.
-rw-r--r--compiler/rustc_target/src/spec/abi_map.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/abi_map.rs b/compiler/rustc_target/src/spec/abi_map.rs
index d9101f79f04..be94e18dc39 100644
--- a/compiler/rustc_target/src/spec/abi_map.rs
+++ b/compiler/rustc_target/src/spec/abi_map.rs
@@ -29,6 +29,7 @@ impl AbiMapping {
         }
     }
 
+    #[track_caller]
     pub fn unwrap(self) -> CanonAbi {
         self.into_option().unwrap()
     }