Use a LocalDefId
for HirTyLowerer::item_def_id
, since we only ever (can) use it for local items
This commit is contained in:
parent
a330e49593
commit
dc020ae5d8
4 changed files with 13 additions and 15 deletions
|
@ -370,8 +370,8 @@ impl<'tcx> HirTyLowerer<'tcx> for ItemCtxt<'tcx> {
|
|||
self.tcx
|
||||
}
|
||||
|
||||
fn item_def_id(&self) -> DefId {
|
||||
self.item_def_id.to_def_id()
|
||||
fn item_def_id(&self) -> LocalDefId {
|
||||
self.item_def_id
|
||||
}
|
||||
|
||||
fn allow_infer(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue