diff options
| author | Johann Hemmann <johann.hemmann@code.berlin> | 2024-01-22 01:41:42 +0100 |
|---|---|---|
| committer | Johann Hemmann <johann.hemmann@code.berlin> | 2024-01-31 19:06:18 +0100 |
| commit | 0adb4d16856d22ba6a63b659d7dbd37b514b2d0c (patch) | |
| tree | 33f7e86389670b0f873847285405f9ad31fcdba1 | |
| parent | b176cf2478ae9bc7b0c293c8cf0669d6e64e9474 (diff) | |
| download | rust-0adb4d16856d22ba6a63b659d7dbd37b514b2d0c.tar.gz rust-0adb4d16856d22ba6a63b659d7dbd37b514b2d0c.zip | |
wildcard_in_or_patterns
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/hir-ty/src/inhabitedness.rs | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml index 8296c912959..0d42f9c655b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -181,7 +181,6 @@ non_canonical_partial_ord_impl = "allow" self_named_constructors = "allow" too_many_arguments = "allow" type_complexity = "allow" -wildcard_in_or_patterns = "allow" wrong_self_convention = "allow" ## warn at following lints diff --git a/crates/hir-ty/src/inhabitedness.rs b/crates/hir-ty/src/inhabitedness.rs index a63556f450d..532b650e8ff 100644 --- a/crates/hir-ty/src/inhabitedness.rs +++ b/crates/hir-ty/src/inhabitedness.rs @@ -84,8 +84,7 @@ impl TypeVisitor<Interner> for UninhabitedFrom<'_> { Some(0) | None => CONTINUE_OPAQUELY_INHABITED, Some(1..) => item_ty.super_visit_with(self, outer_binder), }, - - TyKind::Ref(..) | _ => CONTINUE_OPAQUELY_INHABITED, + _ => CONTINUE_OPAQUELY_INHABITED, }; self.recursive_ty.remove(ty); self.max_depth += 1; |
