This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
39e23ef532
rust
/
tests
/
ui
/
unused-crate-deps
/
auxiliary
/
bar.rs
2 lines
29 B
Rust
Raw
Normal View
History
Unescape
Escape
Implement warning for unused dependencies. This will print a diagnostic for crates which are mentioned as `--extern` arguments on the command line, but are never referenced from the source. This diagnostic is controlled by `-Wunused-crate-dependencies` or `#![warn(unused_crate_dependencies)]` and is "allow" by default. There are cases where certain crates need to be linked in but are not directly referenced - for example if they are providing symbols for C linkage. In this case the warning can be suppressed with `use needed_crate as _;`. Thanks to @petrochenkov for simplified core. Resolves issue #57274
2020-05-17 03:48:01 -05:00
pub
const
BAR
:
&
str
=
"
bar
"
;
Reference in New Issue
Copy Permalink