Skip to content

Commit

Permalink
Auto merge of #88962 - fee1-dead:const-drop, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Sep 17, 2021
2 parents 9dd4ce8 + b76b2c2 commit a58db2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_trait_selection/src/traits/select/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Display + TypeFoldable<'tcx>, V: Display + TypeFoldable<'tcx>>(
&self,
obligation: &Obligation<'tcx, T>,
Expand Down

0 comments on commit a58db2e

Please sign in to comment.