To use certain crates such as proc_macro it is required to include it with extern crate proc_macro. Similar thing applies to other sysroot crates.
Denying the unused group of lints will prevent code from compiling properly with an error like this:
error: `extern crate` is not idiomatic in the new edition
--> src/lib.rs:3:1
|
3 | extern crate proc_macro;
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `use`
|
= note: `-D unused-extern-crates` implied by `-D unused`
To use certain crates such as
proc_macroit is required to include it withextern crate proc_macro. Similar thing applies to other sysroot crates.Denying the
unusedgroup of lints will prevent code from compiling properly with an error like this: