Skip to content

Commit c2cf3f7

Browse files
committed
Inline OpportunisticVarResolver::fold_ty.
1 parent f08a337 commit c2cf3f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_infer/src/infer/resolve.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ impl<'a, 'tcx> TypeFolder<'tcx> for OpportunisticVarResolver<'a, 'tcx> {
3333
TypeFolder::tcx(&self.shallow_resolver)
3434
}
3535

36+
#[inline]
3637
fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx> {
3738
if !t.has_non_region_infer() {
3839
t // micro-optimize -- if there is nothing in this type that this fold affects...

0 commit comments

Comments
 (0)