]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/print_stdout.txt
:arrow_up: rust-analyzer
[rust.git] / src / tools / clippy / src / docs / print_stdout.txt
1 ### What it does
2 Checks for printing on *stdout*. The purpose of this lint
3 is to catch debugging remnants.
4
5 ### Why is this bad?
6 People often print on *stdout* while debugging an
7 application and might forget to remove those prints afterward.
8
9 ### Known problems
10 * Only catches `print!` and `println!` calls.
11 * The lint level is unaffected by crate attributes. The level can still
12   be set for functions, modules and other items. To change the level for
13   the entire crate, please use command line flags. More information and a
14   configuration example can be found in [clippy#6610].
15
16 [clippy#6610]: https://github.com/rust-lang/rust-clippy/issues/6610#issuecomment-977120558
17
18 ### Example
19 ```
20 println!("Hello world!");
21 ```