mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
skip_while_next
This commit is contained in:
parent
355c9444e1
commit
386d438e17
2 changed files with 1 additions and 3 deletions
|
@ -179,7 +179,6 @@ new_without_default = "allow"
|
||||||
non_canonical_clone_impl = "allow"
|
non_canonical_clone_impl = "allow"
|
||||||
non_canonical_partial_ord_impl = "allow"
|
non_canonical_partial_ord_impl = "allow"
|
||||||
self_named_constructors = "allow"
|
self_named_constructors = "allow"
|
||||||
skip_while_next = "allow"
|
|
||||||
too_many_arguments = "allow"
|
too_many_arguments = "allow"
|
||||||
toplevel_ref_arg = "allow"
|
toplevel_ref_arg = "allow"
|
||||||
type_complexity = "allow"
|
type_complexity = "allow"
|
||||||
|
|
|
@ -1267,8 +1267,7 @@ fn pattern_context_for(
|
||||||
pat
|
pat
|
||||||
.syntax()
|
.syntax()
|
||||||
.ancestors()
|
.ancestors()
|
||||||
.skip_while(|it| ast::Pat::can_cast(it.kind()))
|
.find(|it| !ast::Pat::can_cast(it.kind()))
|
||||||
.next()
|
|
||||||
.map_or((PatternRefutability::Irrefutable, false), |node| {
|
.map_or((PatternRefutability::Irrefutable, false), |node| {
|
||||||
let refutability = match_ast! {
|
let refutability = match_ast! {
|
||||||
match node {
|
match node {
|
||||||
|
|
Loading…
Reference in a new issue