ignore empty comment in semicolon_if_nothing_returned
This commit is contained in:
parent
0ea449597e
commit
ee0cbeaa77
@ -1,7 +1,12 @@
|
||||
//@aux-build:proc_macro_attr.rs
|
||||
|
||||
#![warn(clippy::semicolon_if_nothing_returned)]
|
||||
#![allow(clippy::redundant_closure, clippy::uninlined_format_args, clippy::needless_late_init)]
|
||||
#![allow(
|
||||
clippy::redundant_closure,
|
||||
clippy::uninlined_format_args,
|
||||
clippy::needless_late_init,
|
||||
clippy::empty_docs
|
||||
)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate proc_macro_attr;
|
||||
|
@ -1,7 +1,12 @@
|
||||
//@aux-build:proc_macro_attr.rs
|
||||
|
||||
#![warn(clippy::semicolon_if_nothing_returned)]
|
||||
#![allow(clippy::redundant_closure, clippy::uninlined_format_args, clippy::needless_late_init)]
|
||||
#![allow(
|
||||
clippy::redundant_closure,
|
||||
clippy::uninlined_format_args,
|
||||
clippy::needless_late_init,
|
||||
clippy::empty_docs
|
||||
)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate proc_macro_attr;
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: consider adding a `;` to the last statement for consistent formatting
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:13:5
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:18:5
|
||||
|
|
||||
LL | println!("Hello")
|
||||
| ^^^^^^^^^^^^^^^^^ help: add a `;` here: `println!("Hello");`
|
||||
@ -8,25 +8,25 @@ LL | println!("Hello")
|
||||
= help: to override `-D warnings` add `#[allow(clippy::semicolon_if_nothing_returned)]`
|
||||
|
||||
error: consider adding a `;` to the last statement for consistent formatting
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:17:5
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:22:5
|
||||
|
|
||||
LL | get_unit()
|
||||
| ^^^^^^^^^^ help: add a `;` here: `get_unit();`
|
||||
|
||||
error: consider adding a `;` to the last statement for consistent formatting
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:22:5
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:27:5
|
||||
|
|
||||
LL | y = x + 1
|
||||
| ^^^^^^^^^ help: add a `;` here: `y = x + 1;`
|
||||
|
||||
error: consider adding a `;` to the last statement for consistent formatting
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:28:9
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:33:9
|
||||
|
|
||||
LL | hello()
|
||||
| ^^^^^^^ help: add a `;` here: `hello();`
|
||||
|
||||
error: consider adding a `;` to the last statement for consistent formatting
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:39:9
|
||||
--> tests/ui/semicolon_if_nothing_returned.rs:44:9
|
||||
|
|
||||
LL | ptr::drop_in_place(s.as_mut_ptr())
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `ptr::drop_in_place(s.as_mut_ptr());`
|
||||
|
Loading…
Reference in New Issue
Block a user