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"
179179non_canonical_clone_impl = " allow"
180180non_canonical_partial_ord_impl = " allow"
181181self_named_constructors = " allow"
182- skip_while_next = " allow"
183182too_many_arguments = " allow"
184183toplevel_ref_arg = " allow"
185184type_complexity = " allow"
Original file line number Diff line number Diff line change @@ -1267,8 +1267,7 @@ fn pattern_context_for(
12671267 pat
12681268 . syntax ( )
12691269 . ancestors ( )
1270- . skip_while ( |it| ast:: Pat :: can_cast ( it. kind ( ) ) )
1271- . next ( )
1270+ . find ( |it| !ast:: Pat :: can_cast ( it. kind ( ) ) )
12721271 . map_or ( ( PatternRefutability :: Irrefutable , false ) , |node| {
12731272 let refutability = match_ast ! {
12741273 match node {
You can’t perform that action at this time.
0 commit comments