From b76b2c263d6afdeb08554d4c4e66b16ea30ef336 Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Wed, 15 Sep 2021 09:17:35 +0000 Subject: [PATCH] inline(always) on check_recursion_limit --- compiler/rustc_trait_selection/src/traits/select/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index 7b948a0939fff..388a8e9614a6b 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -1060,6 +1060,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { /// /// The weird return type of this function allows it to be used with the `try` (`?`) /// operator within certain functions. + #[inline(always)] fn check_recursion_limit, V: Display + TypeFoldable<'tcx>>( &self, obligation: &Obligation<'tcx, T>,