fix suggestion error with attr macros
This commit is contained in:
parent
9fe7c6a7ec
commit
0e961cd854
4 changed files with 25 additions and 17 deletions
|
|
@ -129,19 +129,26 @@ fn let_else_stmts() {
|
|||
mod issue12123 {
|
||||
#[rustfmt::skip]
|
||||
mod this_triggers {
|
||||
#[fake_main];
|
||||
#[fake_main]
|
||||
async fn main() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
mod and_this {
|
||||
#[fake_main];
|
||||
#[fake_main]
|
||||
async fn main() {
|
||||
println!("hello");
|
||||
}
|
||||
}
|
||||
|
||||
#[rustfmt::skip]
|
||||
mod maybe_this {
|
||||
/** */ #[fake_main]
|
||||
async fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
mod but_this_does_not {
|
||||
#[fake_main]
|
||||
async fn main() {}
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ mod issue12123 {
|
|||
mod this_triggers {
|
||||
#[fake_main]
|
||||
async fn main() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -142,6 +142,13 @@ mod issue12123 {
|
|||
}
|
||||
}
|
||||
|
||||
#[rustfmt::skip]
|
||||
mod maybe_this {
|
||||
/** */ #[fake_main]
|
||||
async fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
mod but_this_does_not {
|
||||
#[fake_main]
|
||||
async fn main() {}
|
||||
|
|
|
|||
|
|
@ -31,17 +31,5 @@ error: consider adding a `;` to the last statement for consistent formatting
|
|||
LL | ptr::drop_in_place(s.as_mut_ptr())
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `ptr::drop_in_place(s.as_mut_ptr());`
|
||||
|
||||
error: consider adding a `;` to the last statement for consistent formatting
|
||||
--> $DIR/semicolon_if_nothing_returned.rs:132:9
|
||||
|
|
||||
LL | #[fake_main]
|
||||
| ^^^^^^^^^^^^ help: add a `;` here: `#[fake_main];`
|
||||
|
||||
error: consider adding a `;` to the last statement for consistent formatting
|
||||
--> $DIR/semicolon_if_nothing_returned.rs:139:9
|
||||
|
|
||||
LL | #[fake_main]
|
||||
| ^^^^^^^^^^^^ help: add a `;` here: `#[fake_main];`
|
||||
|
||||
error: aborting due to 7 previous errors
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue