Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lint print_stderr, similarly to print_stdout #6348

Closed
tobin-crypto opened this issue Nov 19, 2020 · 0 comments · Fixed by #6367
Closed

Add lint print_stderr, similarly to print_stdout #6348

tobin-crypto opened this issue Nov 19, 2020 · 0 comments · Fixed by #6367
Labels
A-lint Area: New lints

Comments

@tobin-crypto
Copy link

What it does

Checks for printing on stderr. The purpose of this lint is to catch debugging remnants.

Categories (optional)

Restriction

Drawbacks

None.

@tobin-crypto tobin-crypto added the A-lint Area: New lints label Nov 19, 2020
@tobin-crypto tobin-crypto changed the title Add lint for eprintln, similarly to print_stdout Add lint print_stderr, similarly to print_stdout Nov 19, 2020
justjosias added a commit to justjosias/rust-clippy that referenced this issue Nov 22, 2020
Resolves rust-lang#6348
Almost identical to print_stdout, this lint applies to the
`eprintln!` and `eprint!` macros rather than `println!` and
`print!`.
justjosias added a commit to justjosias/rust-clippy that referenced this issue Nov 29, 2020
Resolves rust-lang#6348
Almost identical to print_stdout, this lint applies to the
`eprintln!` and `eprint!` macros rather than `println!` and
`print!`.
ebroto pushed a commit to justjosias/rust-clippy that referenced this issue Nov 30, 2020
Resolves rust-lang#6348
Almost identical to print_stdout, this lint applies to the
`eprintln!` and `eprint!` macros rather than `println!` and
`print!`.
justjosias added a commit to justjosias/rust-clippy that referenced this issue Dec 4, 2020
Resolves rust-lang#6348
Almost identical to print_stdout, this lint applies to the
`eprintln!` and `eprint!` macros rather than `println!` and
`print!`.
bors added a commit that referenced this issue Dec 8, 2020
Add lint print_stderr

Resolves #6348
Almost identical to print_stdout, this lint applies to the `eprintln!` and `eprint!` macros rather than `println!` and `print!`.
bors added a commit that referenced this issue Dec 8, 2020
Add lint print_stderr

Resolves #6348
Almost identical to print_stdout, this lint applies to the `eprintln!` and `eprint!` macros rather than `println!` and `print!`.

changelog: Add new lint [`print_stderr`]. [`println_empty_string`] and [`print_with_newline`] now apply to `eprint!()` and `eprintln!()` respectively.
@bors bors closed this as completed in b81141c Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant