Implement Debug for DefIdForest

This commit is contained in:
Aaron Hill 2021-01-16 17:56:32 -05:00
parent 6417760632
commit 02952372c4
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -18,7 +18,7 @@ use DefIdForest::*;
/// We store the minimal set of `DefId`s required to represent the whole set. If A and B are /// We store the minimal set of `DefId`s required to represent the whole set. If A and B are
/// `DefId`s in the `DefIdForest`, and A is a parent of B, then only A will be stored. When this is /// `DefId`s in the `DefIdForest`, and A is a parent of B, then only A will be stored. When this is
/// used with `type_uninhabited_from`, there will very rarely be more than one `DefId` stored. /// used with `type_uninhabited_from`, there will very rarely be more than one `DefId` stored.
#[derive(Clone, HashStable)] #[derive(Clone, HashStable, Debug)]
pub enum DefIdForest { pub enum DefIdForest {
Empty, Empty,
Single(DefId), Single(DefId),