Closed
Description
Summary
# in clippy.toml
disallowed-methods = [
"std::boxed::Box::new"
]
// in main.rs
fn main() {
let _box = Box::new(3);
}
no warning
❯ cargo clean; cargo clippy
Checking nono v0.1.0 (D:\tmp\nono)
Finished dev [unoptimized + debuginfo] target(s) in 0.25s
Lint Name
disallowed-methods
Reproducer
No response
Version
rustc 1.58.1 (db9d1b20b 2022-01-20)
binary: rustc
commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b
commit-date: 2022-01-20
host: x86_64-pc-windows-msvc
release: 1.58.1
LLVM version: 13.0.0
also for
rustc 1.61.0-nightly (1eb72580d 2022-03-08)
binary: rustc
commit-hash: 1eb72580d076935a3e590deb6e5813a5aef3eca4
commit-date: 2022-03-08
host: x86_64-unknown-linux-gnu
release: 1.61.0-nightly
LLVM version: 14.0.0