diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/rfc-2091-track-caller/call-chain.rs (renamed from src/test/ui/rfc-2091-track-caller/call-chain.rs) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/rfc-2091-track-caller/call-chain.rs b/tests/ui/rfc-2091-track-caller/call-chain.rs index fefb84de7..28b3f76c9 100644 --- a/src/test/ui/rfc-2091-track-caller/call-chain.rs +++ b/tests/ui/rfc-2091-track-caller/call-chain.rs @@ -1,10 +1,14 @@ // run-pass +// revisions: default mir-opt +//[default] compile-flags: -Zinline-mir=no +//[mir-opt] compile-flags: -Zmir-opt-level=4 use std::panic::Location; struct Foo; impl Foo { + #[inline(always)] #[track_caller] fn check_loc(&self, line: u32, col: u32) -> &Self { let loc = Location::caller(); |