We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
return
1 parent 0ff9794 commit 9a33391Copy full SHA for 9a33391
compiler/rustc_infer/src/infer/resolve.rs
@@ -38,7 +38,7 @@ impl<'a, 'tcx> TypeFolder<TyCtxt<'tcx>> for OpportunisticVarResolver<'a, 'tcx> {
38
if !t.has_non_region_infer() {
39
t // micro-optimize -- if there is nothing in this type that this fold affects...
40
} else if let Some(&ty) = self.cache.get(&t) {
41
- return ty;
+ ty
42
} else {
43
let shallow = self.infcx.shallow_resolve(t);
44
let res = shallow.super_fold_with(self);
0 commit comments