mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 11:33:19 +00:00
9b7227cf3f
Do not leave a `+ ` line with only whitespace. In reality, the user will want to remove the entire line.
70 lines
2 KiB
Text
70 lines
2 KiB
Text
error: the `dbg!` macro is intended as a debugging tool
|
|
--> tests/ui/dbg_macro/auxiliary/submodule.rs:2:5
|
|
|
|
|
LL | dbg!();
|
|
| ^^^^^^^
|
|
|
|
|
= note: `-D clippy::dbg-macro` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::dbg_macro)]`
|
|
help: remove the invocation before committing it to a version control system
|
|
|
|
|
LL - dbg!();
|
|
|
|
|
|
|
error: the `dbg!` macro is intended as a debugging tool
|
|
--> tests/ui/dbg_macro/dbg_macro_unfixable.rs:8:5
|
|
|
|
|
LL | dbg!(dbg!(dbg!(42)));
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the invocation before committing it to a version control system
|
|
|
|
|
LL | dbg!(dbg!(42));
|
|
| ~~~~~~~~~~~~~~
|
|
|
|
error: the `dbg!` macro is intended as a debugging tool
|
|
--> tests/ui/dbg_macro/dbg_macro_unfixable.rs:8:10
|
|
|
|
|
LL | dbg!(dbg!(dbg!(42)));
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the invocation before committing it to a version control system
|
|
|
|
|
LL | dbg!(dbg!(42));
|
|
| ~~~~~~~~
|
|
|
|
error: the `dbg!` macro is intended as a debugging tool
|
|
--> tests/ui/dbg_macro/dbg_macro_unfixable.rs:8:15
|
|
|
|
|
LL | dbg!(dbg!(dbg!(42)));
|
|
| ^^^^^^^^
|
|
|
|
|
help: remove the invocation before committing it to a version control system
|
|
|
|
|
LL | dbg!(dbg!(42));
|
|
| ~~
|
|
|
|
error: the `dbg!` macro is intended as a debugging tool
|
|
--> tests/ui/dbg_macro/dbg_macro_unfixable.rs:10:5
|
|
|
|
|
LL | dbg!(1, 2, dbg!(3, 4));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the invocation before committing it to a version control system
|
|
|
|
|
LL | (1, 2, dbg!(3, 4));
|
|
| ~~~~~~~~~~~~~~~~~~
|
|
|
|
error: the `dbg!` macro is intended as a debugging tool
|
|
--> tests/ui/dbg_macro/dbg_macro_unfixable.rs:10:16
|
|
|
|
|
LL | dbg!(1, 2, dbg!(3, 4));
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: remove the invocation before committing it to a version control system
|
|
|
|
|
LL | dbg!(1, 2, (3, 4));
|
|
| ~~~~~~
|
|
|
|
error: aborting due to 6 previous errors
|
|
|