Use local key in providers
This commit is contained in:
parent
a01b4cc9f3
commit
2eb1c08e43
65 changed files with 458 additions and 395 deletions
|
@ -22,6 +22,12 @@ impl From<OwnerId> for HirId {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<OwnerId> for DefId {
|
||||
fn from(value: OwnerId) -> Self {
|
||||
value.to_def_id()
|
||||
}
|
||||
}
|
||||
|
||||
impl OwnerId {
|
||||
#[inline]
|
||||
pub fn to_def_id(self) -> DefId {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue