diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index d5660c1c7ba..a3a9086c5ad 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -1052,6 +1052,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>,