Impl From<LocalDefId>
for DefId
This commit is contained in:
parent
62b5aff1ae
commit
10ed501254
1 changed files with 6 additions and 0 deletions
|
@ -237,6 +237,12 @@ impl fmt::Debug for LocalDefId {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<LocalDefId> for DefId {
|
||||
fn from(v: LocalDefId) -> Self {
|
||||
v.to_def_id()
|
||||
}
|
||||
}
|
||||
|
||||
impl rustc_serialize::UseSpecializedEncodable for LocalDefId {}
|
||||
impl rustc_serialize::UseSpecializedDecodable for LocalDefId {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue