inline(always) on check_recursion_limit

This commit is contained in:
Deadbeef 2021-09-15 09:17:35 +00:00
parent cdeba02ff7
commit b76b2c263d
No known key found for this signature in database
GPG Key ID: 027DF9338862ADDD

View File

@ -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>,