File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
crates/ide-completion/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1334,7 +1334,7 @@ fn pattern_context_for(
1334
1334
. map_or ( ( PatternRefutability :: Irrefutable , false ) , |node| {
1335
1335
let refutability = match_ast ! {
1336
1336
match node {
1337
- ast:: LetStmt ( let_) => return ( PatternRefutability :: Irrefutable , let_. ty( ) . is_some( ) ) ,
1337
+ ast:: LetStmt ( let_) => return ( PatternRefutability :: Refutable , let_. ty( ) . is_some( ) ) ,
1338
1338
ast:: Param ( param) => {
1339
1339
let has_type_ascription = param. ty( ) . is_some( ) ;
1340
1340
param_ctx = ( || {
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ enum SingleVariantEnum {
146
146
}
147
147
use SingleVariantEnum::Variant;
148
148
fn foo() {
149
- let a$0
149
+ for a$0
150
150
}
151
151
"# ,
152
152
expect ! [ [ r#"
You can’t perform that action at this time.
0 commit comments