Skip to content

Commit b22df08

Browse files
authored
Rollup merge of #95735 - bjorn3:revert_inline_location_caller, r=compiler-errors
Revert "Mark Location::caller() as #[inline]" This reverts #95619. As noted in #95619 (comment) this seems to break several tests with cg_clif.
2 parents 687e40a + 6a7ff98 commit b22df08

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/panic/location.rs

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ impl<'a> Location<'a> {
8383
#[stable(feature = "track_caller", since = "1.46.0")]
8484
#[rustc_const_unstable(feature = "const_caller_location", issue = "76156")]
8585
#[track_caller]
86-
#[inline]
8786
pub const fn caller() -> &'static Location<'static> {
8887
crate::intrinsics::caller_location()
8988
}

0 commit comments

Comments
 (0)