We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2db928 commit 699d3e4Copy full SHA for 699d3e4
compiler/rustc_infer/src/infer/mod.rs
@@ -1125,7 +1125,9 @@ impl<'tcx> InferCtxt<'tcx> {
1125
// Note: if these two lines are combined into one we get
1126
// dynamic borrow errors on `self.inner`.
1127
let known = self.inner.borrow_mut().type_variables().probe(v).known();
1128
- known.map_or(ty, |t| self.shallow_resolve(t))
+ known.map_or(Ty::new_var(self.tcx, self.root_var(v)), |t| {
1129
+ self.shallow_resolve(t)
1130
+ })
1131
}
1132
1133
ty::IntVar(v) => {
0 commit comments