Skip to content

Commit d5a1609

Browse files
committed
review comment: use fcx.infcx
1 parent e477cf9 commit d5a1609

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_hir_typeck/src/coercion.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,9 +1645,7 @@ impl<'tcx, 'exprs, E: AsCoercionSite> CoerceMany<'tcx, 'exprs, E> {
16451645
let e = substs_e.type_at(1);
16461646
let f = substs_f.type_at(1);
16471647
if fcx
1648-
.tcx
1649-
.infer_ctxt()
1650-
.build()
1648+
.infcx
16511649
.type_implements_trait(
16521650
fcx.tcx.get_diagnostic_item(sym::Into).unwrap(),
16531651
[fcx.tcx.erase_regions(f), fcx.tcx.erase_regions(e)],

0 commit comments

Comments
 (0)