Skip to content

Commit 31ca816

Browse files
committed
not_exhaustive_enough
1 parent ff8a10a commit 31ca816

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/not_exhaustive_enough.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ fn get_missing_variants<'tcx>(cx: &LateContext<'tcx>, arms: &[Arm<'_>], e: &'tcx
122122
for arm in arms {
123123
if let PatKind::Path(ref path) = arm.pat.kind {
124124
if let QPath::Resolved(_, p) = path {
125+
println!("{:?}", path);
125126
missing_variants.retain(|e| e.ctor_def_id != Some(p.res.def_id()));
126127
}
127128
} else if let PatKind::TupleStruct(ref path, ref patterns, ..) = arm.pat.kind {

0 commit comments

Comments
 (0)