Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f474cf4

Browse files
committedOct 21, 2023
FileCheck unwrap_unchecked
1 parent 1fa2601 commit f474cf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎tests/mir-opt/inline/unwrap_unchecked.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
#![crate_type = "lib"]
32

43
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
@@ -8,5 +7,7 @@
87
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.Inline.diff
98
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.PreCodegen.after.mir
109
pub unsafe fn unwrap_unchecked<T>(slf: Option<T>) -> T {
10+
// CHECK-LABEL: fn unwrap_unchecked(
11+
// CHECK: (inlined #[track_caller] Option::<T>::unwrap_unchecked)
1112
slf.unwrap_unchecked()
1213
}

0 commit comments

Comments
 (0)
Please sign in to comment.