about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2021-09-15 09:17:35 +0000
committerDeadbeef <ent3rm4n@gmail.com>2021-09-15 09:17:35 +0000
commitb76b2c263d6afdeb08554d4c4e66b16ea30ef336 (patch)
tree730c30022ab136aa42cf984ffafb64df48eb9790
parentcdeba02ff71416e014f7130f75166890688be986 (diff)
downloadrust-b76b2c263d6afdeb08554d4c4e66b16ea30ef336.tar.gz
rust-b76b2c263d6afdeb08554d4c4e66b16ea30ef336.zip
inline(always) on check_recursion_limit
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index 7b948a0939f..388a8e9614a 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<T: Display + TypeFoldable<'tcx>, V: Display + TypeFoldable<'tcx>>(
         &self,
         obligation: &Obligation<'tcx, T>,