File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/tools/rust-analyzer/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(
13341334 . map_or ( ( PatternRefutability :: Irrefutable , false ) , |node| {
13351335 let refutability = match_ast ! {
13361336 match node {
1337- ast:: LetStmt ( let_) => return ( PatternRefutability :: Irrefutable , let_. ty( ) . is_some( ) ) ,
1337+ ast:: LetStmt ( let_) => return ( PatternRefutability :: Refutable , let_. ty( ) . is_some( ) ) ,
13381338 ast:: Param ( param) => {
13391339 let has_type_ascription = param. ty( ) . is_some( ) ;
13401340 param_ctx = ( || {
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ enum SingleVariantEnum {
146146}
147147use SingleVariantEnum::Variant;
148148fn foo() {
149- let a$0
149+ for a$0
150150}
151151"# ,
152152 expect ! [ [ r#"
You can’t perform that action at this time.
0 commit comments