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, 8 insertions, 9 deletions
diff --git a/crates/ide/src/expand_macro.rs b/crates/ide/src/expand_macro.rs
index 6ac4fa1fba..cc322d2b9e 100644
--- a/crates/ide/src/expand_macro.rs
+++ b/crates/ide/src/expand_macro.rs
@@ -357,7 +357,7 @@ fn main() {
"#,
expect![[r#"
bar!
- for _ in 0..42{}"#]],
+ for _ in 0..42 {}"#]],
);
}
@@ -433,9 +433,9 @@ fn main() {
expect![[r#"
match_ast!
{
- if let Some(it) = ast::TraitDef::cast(container.clone()){}
- else if let Some(it) = ast::ImplDef::cast(container.clone()){}
- else {
+ if let Some(it) = ast::TraitDef::cast(container.clone()){
+ }else if let Some(it) = ast::ImplDef::cast(container.clone()){
+ }else {
{
continue
}
@@ -594,7 +594,7 @@ struct Foo {}
"#,
expect![[r#"
proc_macros::DeriveIdentity
- struct Foo{}"#]],
+ struct Foo {}"#]],
);
}
@@ -612,7 +612,7 @@ struct Foo {}
expect![[r#"
proc_macros::DeriveIdentity
#[derive(proc_macros::DeriveIdentity)]
- struct Foo{}"#]],
+ struct Foo {}"#]],
);
}
@@ -628,7 +628,7 @@ struct Foo {}
"#,
expect![[r#"
proc_macros::DeriveIdentity
- struct Foo{}"#]],
+ struct Foo {}"#]],
);
check(
r#"
@@ -640,7 +640,7 @@ struct Foo {}
"#,
expect![[r#"
proc_macros::DeriveIdentity
- struct Foo{}"#]],
+ struct Foo {}"#]],
);
}
@@ -783,7 +783,6 @@ foo();
macro_rules! foo {
() => {
fn item(){}
-
};
}
foo();"#]],