Skip to content

Commit 0adb4d1

Browse files
committed
wildcard_in_or_patterns
1 parent b176cf2 commit 0adb4d1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ non_canonical_partial_ord_impl = "allow"
181181
self_named_constructors = "allow"
182182
too_many_arguments = "allow"
183183
type_complexity = "allow"
184-
wildcard_in_or_patterns = "allow"
185184
wrong_self_convention = "allow"
186185

187186
## warn at following lints

crates/hir-ty/src/inhabitedness.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ impl TypeVisitor<Interner> for UninhabitedFrom<'_> {
8484
Some(0) | None => CONTINUE_OPAQUELY_INHABITED,
8585
Some(1..) => item_ty.super_visit_with(self, outer_binder),
8686
},
87-
88-
TyKind::Ref(..) | _ => CONTINUE_OPAQUELY_INHABITED,
87+
_ => CONTINUE_OPAQUELY_INHABITED,
8988
};
9089
self.recursive_ty.remove(ty);
9190
self.max_depth += 1;

0 commit comments

Comments
 (0)