Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/expand_macro.rs')
-rw-r--r--crates/ide/src/expand_macro.rs17
1 files changed, 4 insertions, 13 deletions
diff --git a/crates/ide/src/expand_macro.rs b/crates/ide/src/expand_macro.rs
index a578aba01f..806f816898 100644
--- a/crates/ide/src/expand_macro.rs
+++ b/crates/ide/src/expand_macro.rs
@@ -250,8 +250,7 @@ fn main() {
"#,
expect![[r#"
bar
- for _ in 0..42{}
- "#]],
+ for _ in 0..42{}"#]],
);
}
@@ -273,7 +272,6 @@ f$0oo!();
expect![[r#"
foo
fn b(){}
-
"#]],
);
}
@@ -297,8 +295,7 @@ f$0oo!();
fn some_thing() -> u32 {
let a = 0;
a+10
- }
- "#]],
+ }"#]],
);
}
@@ -359,8 +356,7 @@ fn main() {
"#,
expect![[r#"
match_ast
- {}
- "#]],
+ {}"#]],
);
}
@@ -421,8 +417,7 @@ fn main() {
"#,
expect![[r#"
foo
- fn f<T>(_: &dyn ::std::marker::Copy){}
- "#]],
+ fn f<T>(_: &dyn ::std::marker::Copy){}"#]],
);
}
@@ -440,7 +435,6 @@ struct Foo {}
expect![[r#"
Clone
impl < >core::clone::Clone for Foo< >{}
-
"#]],
);
}
@@ -458,7 +452,6 @@ struct Foo {}
expect![[r#"
Copy
impl < >core::marker::Copy for Foo< >{}
-
"#]],
);
}
@@ -475,7 +468,6 @@ struct Foo {}
expect![[r#"
Copy
impl < >core::marker::Copy for Foo< >{}
-
"#]],
);
check(
@@ -488,7 +480,6 @@ struct Foo {}
expect![[r#"
Clone
impl < >core::clone::Clone for Foo< >{}
-
"#]],
);
}