Skip to content

Commit b46d57d

Browse files
committed
DELETEME make Scope implement Debug trait.
1 parent 5c67a97 commit b46d57d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_mir/build/scope.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ use syntax_pos::Span;
9696
use rustc_data_structures::indexed_vec::Idx;
9797
use rustc_data_structures::fx::FxHashMap;
9898

99+
#[derive(Debug)]
99100
pub(crate) struct Scope<'tcx> {
100101
/// The visibility scope this scope was created in.
101102
visibility_scope: VisibilityScope,
@@ -139,6 +140,7 @@ pub(crate) struct Scope<'tcx> {
139140
cached_exits: FxHashMap<(BasicBlock, CodeExtent), BasicBlock>,
140141
}
141142

143+
#[derive(Debug)]
142144
struct DropData<'tcx> {
143145
/// span where drop obligation was incurred (typically where lvalue was declared)
144146
span: Span,
@@ -150,6 +152,7 @@ struct DropData<'tcx> {
150152
kind: DropKind
151153
}
152154

155+
#[derive(Debug)]
153156
enum DropKind {
154157
Value {
155158
/// The cached block for the cleanups-on-diverge path. This block
@@ -161,6 +164,7 @@ enum DropKind {
161164
Storage
162165
}
163166

167+
#[derive(Debug)]
164168
struct FreeData<'tcx> {
165169
/// span where free obligation was incurred
166170
span: Span,

0 commit comments

Comments
 (0)