Use ItemId as a strongly typed index.
This commit is contained in:
parent
ac8961fc04
commit
c676e358a5
28 changed files with 63 additions and 51 deletions
|
@ -767,7 +767,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
|
|||
let hir = self.infcx.tcx.hir();
|
||||
|
||||
if let hir::TyKind::OpaqueDef(id, _) = hir_ty.kind {
|
||||
let opaque_ty = hir.item(id.id);
|
||||
let opaque_ty = hir.item(id);
|
||||
if let hir::ItemKind::OpaqueTy(hir::OpaqueTy {
|
||||
bounds:
|
||||
[hir::GenericBound::LangItemTrait(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue