Skip to content

Commit

Permalink
Rollup merge of #95735 - bjorn3:revert_inline_location_caller, r=comp…
Browse files Browse the repository at this point in the history
…iler-errors

Revert "Mark Location::caller() as #[inline]"

This reverts #95619. As noted in #95619 (comment) this seems to break several tests with cg_clif.
  • Loading branch information
Dylan-DPC authored Apr 6, 2022
2 parents 687e40a + 6a7ff98 commit b22df08
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/core/src/panic/location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ 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()
}
Expand Down

0 comments on commit b22df08

Please sign in to comment.