diff --git a/library/core/src/panic/location.rs b/library/core/src/panic/location.rs index 714e9b73c78a6..a018ad9eab345 100644 --- a/library/core/src/panic/location.rs +++ b/library/core/src/panic/location.rs @@ -83,6 +83,7 @@ impl<'a> Location<'a> { #[stable(feature = "track_caller", since = "1.46.0")] #[rustc_const_unstable(feature = "const_caller_location", issue = "76156")] #[track_caller] + #[inline] pub const fn caller() -> &'static Location<'static> { crate::intrinsics::caller_location() }