Skip to content

Commit ed61e50

Browse files
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.
2 parents 41bc5d7 + d945c85 commit ed61e50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_target/src/spec/abi_map.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ impl AbiMapping {
2929
}
3030
}
3131

32+
#[track_caller]
3233
pub fn unwrap(self) -> CanonAbi {
3334
self.into_option().unwrap()
3435
}

0 commit comments

Comments
 (0)