We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OpportunisticVarResolver::fold_ty
1 parent f08a337 commit c2cf3f7Copy full SHA for c2cf3f7
compiler/rustc_infer/src/infer/resolve.rs
@@ -33,6 +33,7 @@ impl<'a, 'tcx> TypeFolder<'tcx> for OpportunisticVarResolver<'a, 'tcx> {
33
TypeFolder::tcx(&self.shallow_resolver)
34
}
35
36
+ #[inline]
37
fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx> {
38
if !t.has_non_region_infer() {
39
t // micro-optimize -- if there is nothing in this type that this fold affects...
0 commit comments