From 02952372c4149e8f9e1bc60b4f6b30caa4f78bac Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Sat, 16 Jan 2021 17:56:32 -0500 Subject: [PATCH] Implement Debug for DefIdForest --- compiler/rustc_middle/src/ty/inhabitedness/def_id_forest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/ty/inhabitedness/def_id_forest.rs b/compiler/rustc_middle/src/ty/inhabitedness/def_id_forest.rs index 03c8963b090..275384e227a 100644 --- a/compiler/rustc_middle/src/ty/inhabitedness/def_id_forest.rs +++ b/compiler/rustc_middle/src/ty/inhabitedness/def_id_forest.rs @@ -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 /// `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. -#[derive(Clone, HashStable)] +#[derive(Clone, HashStable, Debug)] pub enum DefIdForest { Empty, Single(DefId),