Denying print_stdout
lint in src/lib.rs
does not catch println!()
s in modules
#8023
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Lint name:
print_stdout
I might be misunderstanding something, but usually I put lints in
src/lib.rs
to deny them for all modules. This works for other lints, but seems to not work for theprint_stdout
lint?I tried this code:
https://gist.github.com/jszwedko/59e2fad1a7d4e0c36b96a802a99e25fc
I expected to see this happen: clippy output a warning for the
println!()
insrc/foo/mod.rs
Instead, this happened: clippy did not output any warnings.
Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: