diff --git a/compiler/rustc_middle/src/ty/context/tls.rs b/compiler/rustc_middle/src/ty/context/tls.rs index 41e0454107d2d..5426ac8d73992 100644 --- a/compiler/rustc_middle/src/ty/context/tls.rs +++ b/compiler/rustc_middle/src/ty/context/tls.rs @@ -115,7 +115,7 @@ where } /// Allows access to the current `ImplicitCtxt` in a closure if one is available. -#[inline(always)] +#[inline] pub fn with_context_opt(f: F) -> R where F: for<'a, 'tcx> FnOnce(Option<&ImplicitCtxt<'a, 'tcx>>) -> R, @@ -134,7 +134,7 @@ where /// Allows access to the current `ImplicitCtxt`. /// Panics if there is no `ImplicitCtxt` available. -#[inline(always)] +#[inline] pub fn with_context(f: F) -> R where F: for<'a, 'tcx> FnOnce(&ImplicitCtxt<'a, 'tcx>) -> R, @@ -147,7 +147,7 @@ where /// as the `TyCtxt` passed in. /// This will panic if you pass it a `TyCtxt` which is different from the current /// `ImplicitCtxt`'s `tcx` field. -#[inline(always)] +#[inline] pub fn with_related_context<'tcx, F, R>(tcx: TyCtxt<'tcx>, f: F) -> R where F: FnOnce(&ImplicitCtxt<'_, 'tcx>) -> R,