summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/print_stderr.txt
blob: fc14511cd6a6569f6076cd9dafce259cde18656e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
### What it does
Checks for printing on *stderr*. The purpose of this lint
is to catch debugging remnants.

### Why is this bad?
People often print on *stderr* while debugging an
application and might forget to remove those prints afterward.

### Known problems
* Only catches `eprint!` and `eprintln!` calls.
* The lint level is unaffected by crate attributes. The level can still
  be set for functions, modules and other items. To change the level for
  the entire crate, please use command line flags. More information and a
  configuration example can be found in [clippy#6610].

[clippy#6610]: https://github.com/rust-lang/rust-clippy/issues/6610#issuecomment-977120558

### Example
```
eprintln!("Hello world!");
```