review comment: use fcx.infcx
This commit is contained in:
parent
e477cf9475
commit
d5a1609ec4
1 changed files with 1 additions and 3 deletions
|
@ -1645,9 +1645,7 @@ impl<'tcx, 'exprs, E: AsCoercionSite> CoerceMany<'tcx, 'exprs, E> {
|
||||||
let e = substs_e.type_at(1);
|
let e = substs_e.type_at(1);
|
||||||
let f = substs_f.type_at(1);
|
let f = substs_f.type_at(1);
|
||||||
if fcx
|
if fcx
|
||||||
.tcx
|
.infcx
|
||||||
.infer_ctxt()
|
|
||||||
.build()
|
|
||||||
.type_implements_trait(
|
.type_implements_trait(
|
||||||
fcx.tcx.get_diagnostic_item(sym::Into).unwrap(),
|
fcx.tcx.get_diagnostic_item(sym::Into).unwrap(),
|
||||||
[fcx.tcx.erase_regions(f), fcx.tcx.erase_regions(e)],
|
[fcx.tcx.erase_regions(f), fcx.tcx.erase_regions(e)],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue