hir: impl Display for HirId
This commit is contained in:
parent
f573049729
commit
904a91c496
1 changed files with 6 additions and 0 deletions
|
|
@ -112,6 +112,12 @@ impl serialize::UseSpecializedDecodable for HirId {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for HirId {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{:?}", self)
|
||||
}
|
||||
}
|
||||
|
||||
// hack to ensure that we don't try to access the private parts of `ItemLocalId` in this module
|
||||
mod item_local_id_inner {
|
||||
use rustc_data_structures::indexed_vec::Idx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue