Skip to content

Commit a58db2e

Browse files
committed
Auto merge of rust-lang#88962 - fee1-dead:const-drop, r=oli-obk
inline(always) on check_recursion_limit r? `@oli-obk` rust-lang#88558 caused a regression, this PR adds `#[inline(always)]` to `check_recursion_limit`, a possible suspect of that regression.
2 parents 9dd4ce8 + b76b2c2 commit a58db2e

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_trait_selection/src/traits/select

1 file changed

+1
-0
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
10521052
///
10531053
/// The weird return type of this function allows it to be used with the `try` (`?`)
10541054
/// operator within certain functions.
1055+
#[inline(always)]
10551056
fn check_recursion_limit<T: Display + TypeFoldable<'tcx>, V: Display + TypeFoldable<'tcx>>(
10561057
&self,
10571058
obligation: &Obligation<'tcx, T>,

0 commit comments

Comments
 (0)