1
Fork 0

Use a LocalDefId for HirTyLowerer::item_def_id, since we only ever (can) use it for local items

This commit is contained in:
Oli Scherer 2024-05-29 10:13:28 +00:00
parent a330e49593
commit dc020ae5d8
4 changed files with 13 additions and 15 deletions

View file

@ -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 {