File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
crates/ide-completion/src/context Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ new_without_default = "allow"
179
179
non_canonical_clone_impl = " allow"
180
180
non_canonical_partial_ord_impl = " allow"
181
181
self_named_constructors = " allow"
182
- skip_while_next = " allow"
183
182
too_many_arguments = " allow"
184
183
toplevel_ref_arg = " allow"
185
184
type_complexity = " allow"
Original file line number Diff line number Diff line change @@ -1267,8 +1267,7 @@ fn pattern_context_for(
1267
1267
pat
1268
1268
. syntax ( )
1269
1269
. ancestors ( )
1270
- . skip_while ( |it| ast:: Pat :: can_cast ( it. kind ( ) ) )
1271
- . next ( )
1270
+ . find ( |it| !ast:: Pat :: can_cast ( it. kind ( ) ) )
1272
1271
. map_or ( ( PatternRefutability :: Irrefutable , false ) , |node| {
1273
1272
let refutability = match_ast ! {
1274
1273
match node {
You can’t perform that action at this time.
0 commit comments