Skip to content

Commit 388de38

Browse files
committed
Make it easier to print debugging with Debug
1 parent 7b76b94 commit 388de38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clippy_lints/src/dereference.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,15 @@ struct StateData<'tcx> {
175175
adjusted_ty: Ty<'tcx>,
176176
}
177177

178+
#[derive(Debug)]
178179
struct DerefedBorrow {
179180
count: usize,
180181
msg: &'static str,
181182
stability: TyCoercionStability,
182183
for_field_access: Option<Symbol>,
183184
}
184185

186+
#[derive(Debug)]
185187
enum State {
186188
// Any number of deref method calls.
187189
DerefMethod {
@@ -744,7 +746,7 @@ fn in_postfix_position<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'tcx>) -> boo
744746
}
745747
}
746748

747-
#[derive(Clone, Copy)]
749+
#[derive(Clone, Copy, Debug)]
748750
enum TyCoercionStability {
749751
Deref,
750752
Reborrow,

0 commit comments

Comments
 (0)