We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created the following main.rs:
main.rs
type Unused = String; fn main() { println!("Hello, world!"); }
Note that Unused is not pub and not used. Nevertheless no "unused" warning is given.
Unused
pub
Here is the full (empty) output of cargo build:
cargo build
Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
The text was updated successfully, but these errors were encountered:
Rollup merge of rust-lang#37498 - sanxiyn:unused-type-alias, r=eddyb
b333860
Remove unused type aliases Found by extending the dead code lint. The lint itself is work in progress because of false positives. cc rust-lang#37455.
Auto merge of #38051 - sanxiyn:unused-type-alias-3, r=eddyb
71c06a5
Warn unused type aliases, reimplemented Reimplementation of #37631. Fix #37455.
No branches or pull requests
I created the following
main.rs
:Note that
Unused
is notpub
and not used. Nevertheless no "unused" warning is given.Here is the full (empty) output of
cargo build
:Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
The text was updated successfully, but these errors were encountered: