Skip to content

Commit f1ff041

Browse files
Use Ty::new_var quick path
1 parent 5af801b commit f1ff041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/type_check/relate_tys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'a, 'b, 'tcx> NllTypeRelating<'a, 'b, 'tcx> {
139139
variance,
140140
ty,
141141
)?;
142-
Ok(infcx.resolve_vars_if_possible(Ty::new_infer(infcx.tcx, ty::TyVar(ty_vid))))
142+
Ok(infcx.resolve_vars_if_possible(Ty::new_var(infcx.tcx, ty_vid)))
143143
};
144144

145145
let (a, b) = match (a.kind(), b.kind()) {

0 commit comments

Comments
 (0)