about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2025-06-05 23:09:28 -0700
committerJubilee Young <workingjubilee@gmail.com>2025-06-05 23:09:31 -0700
commitd945c8562b49df98af25ed43b41bdbc59b8385cc (patch)
treef716ee0651de67309bdbdea0f90c2e907d3ba554
parentcf423712b9e95e9f6ec84b1ecb3d125e55ac8d56 (diff)
downloadrust-d945c8562b49df98af25ed43b41bdbc59b8385cc.tar.gz
rust-d945c8562b49df98af25ed43b41bdbc59b8385cc.zip
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()
     }