We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
return
1 parent 72f8dde commit ac6ff3aCopy full SHA for ac6ff3a
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