We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa2601 commit f474cf4Copy full SHA for f474cf4
tests/mir-opt/inline/unwrap_unchecked.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
#![crate_type = "lib"]
3
4
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
@@ -8,5 +7,7 @@
8
7
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.Inline.diff
9
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.PreCodegen.after.mir
10
pub unsafe fn unwrap_unchecked<T>(slf: Option<T>) -> T {
+ // CHECK-LABEL: fn unwrap_unchecked(
11
+ // CHECK: (inlined #[track_caller] Option::<T>::unwrap_unchecked)
12
slf.unwrap_unchecked()
13
}
0 commit comments