Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/replace_if_let_with_match.rs')
-rw-r--r--crates/ide-assists/src/handlers/replace_if_let_with_match.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/ide-assists/src/handlers/replace_if_let_with_match.rs b/crates/ide-assists/src/handlers/replace_if_let_with_match.rs
index ff2d0544b2..6959988db7 100644
--- a/crates/ide-assists/src/handlers/replace_if_let_with_match.rs
+++ b/crates/ide-assists/src/handlers/replace_if_let_with_match.rs
@@ -712,13 +712,11 @@ impl VariantData {
check_assist(
replace_if_let_with_match,
r#"
-#![feature(if_let_guard)]
fn main() {
if $0let true = true && let Some(1) = None {} else { other() }
}
"#,
r#"
-#![feature(if_let_guard)]
fn main() {
match true {
true if let Some(1) = None => {}
@@ -731,7 +729,6 @@ fn main() {
check_assist(
replace_if_let_with_match,
r#"
-#![feature(if_let_guard)]
fn main() {
if true {
$0if let ParenExpr(expr) = cond
@@ -758,7 +755,6 @@ fn main() {
}
"#,
r#"
-#![feature(if_let_guard)]
fn main() {
if true {
match cond {
@@ -816,13 +812,11 @@ fn main() {
check_assist(
replace_if_let_with_match,
r#"
-#![feature(if_let_guard)]
fn main() {
if $0let true = true && let Some(1) = None {}
}
"#,
r#"
-#![feature(if_let_guard)]
fn main() {
match true {
true if let Some(1) = None => {}