mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
wildcard_in_or_patterns
This commit is contained in:
parent
b176cf2478
commit
0adb4d1685
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue