Auto merge of #88962 - fee1-dead:const-drop, r=oli-obk
inline(always) on check_recursion_limit r? `@oli-obk` #88558 caused a regression, this PR adds `#[inline(always)]` to `check_recursion_limit`, a possible suspect of that regression.
This commit is contained in:
commit
a58db2e4dd
@ -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` (`?`)
|
/// The weird return type of this function allows it to be used with the `try` (`?`)
|
||||||
/// operator within certain functions.
|
/// operator within certain functions.
|
||||||
|
#[inline(always)]
|
||||||
fn check_recursion_limit<T: Display + TypeFoldable<'tcx>, V: Display + TypeFoldable<'tcx>>(
|
fn check_recursion_limit<T: Display + TypeFoldable<'tcx>, V: Display + TypeFoldable<'tcx>>(
|
||||||
&self,
|
&self,
|
||||||
obligation: &Obligation<'tcx, T>,
|
obligation: &Obligation<'tcx, T>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user