mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-04 23:50:47 +00:00
test: use 4 spaces for indetation in macro expansion
This commit is contained in:
parent
48966268fc
commit
ec5236f3a8
4 changed files with 41 additions and 41 deletions
|
@ -308,8 +308,8 @@ f$0oo!();
|
|||
expect![[r#"
|
||||
foo!
|
||||
fn some_thing() -> u32 {
|
||||
let a = 0;
|
||||
a+10
|
||||
let a = 0;
|
||||
a+10
|
||||
}"#]],
|
||||
);
|
||||
}
|
||||
|
@ -342,13 +342,13 @@ 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 {
|
||||
{
|
||||
continue
|
||||
if let Some(it) = ast::TraitDef::cast(container.clone()){}
|
||||
else if let Some(it) = ast::ImplDef::cast(container.clone()){}
|
||||
else {
|
||||
{
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
}"#]],
|
||||
);
|
||||
}
|
||||
|
@ -397,12 +397,12 @@ fn main() {
|
|||
expect![[r#"
|
||||
foo!
|
||||
{
|
||||
macro_rules! bar {
|
||||
() => {
|
||||
42
|
||||
macro_rules! bar {
|
||||
() => {
|
||||
42
|
||||
}
|
||||
}
|
||||
}
|
||||
42
|
||||
42
|
||||
}"#]],
|
||||
);
|
||||
}
|
||||
|
@ -482,16 +482,16 @@ struct Foo {}
|
|||
expect![[r#"
|
||||
Clone
|
||||
impl < >$crate::clone::Clone for Foo< >where {
|
||||
fn clone(&self) -> Self {
|
||||
match self {
|
||||
Foo{}
|
||||
=> Foo{}
|
||||
,
|
||||
fn clone(&self) -> Self {
|
||||
match self {
|
||||
Foo{}
|
||||
=> Foo{}
|
||||
,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}"#]],
|
||||
}"#]],
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -534,16 +534,16 @@ struct Foo {}
|
|||
expect![[r#"
|
||||
Clone
|
||||
impl < >$crate::clone::Clone for Foo< >where {
|
||||
fn clone(&self) -> Self {
|
||||
match self {
|
||||
Foo{}
|
||||
=> Foo{}
|
||||
,
|
||||
fn clone(&self) -> Self {
|
||||
match self {
|
||||
Foo{}
|
||||
=> Foo{}
|
||||
,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}"#]],
|
||||
}"#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue