-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Probably most of these are because -Z save-analysis is buggy, but I don't know warnalyzer well enough to tell myself. Also, I want you to know this tool has been super useful ❤️ and I'm going to make a PR removing dead code shortly; it just happens to also be very buggy at the same time 😆 I'm going to put them all in one issue to avoid spamming your bug tracker, but happy to separate them out if you think it's useful.
You should be able to reproduce with RUSTFLAGS_BOOTSTRAP="-Z save-analysis" x.py check on rust-lang/rust@2b5c784.
compiler/rustc/src/main.rs:1:4: unused Function 'main'- clearly wrong, this is the entrypoint of the compilercompiler/rustc/src/main.rs:1:1: unused Mod ''- I think this is trying to warn about the crate root? there's at least one bug herecompiler/rustc_ast/src/ast_like.rs:114:8: unused Method 'visit'- this is a trait function and can't be used. There are some implementations of the trait which are used.compiler/rustc_apfloat/src/ieee.rs:166:5: unused Type 'Single'- this is defined in a macro, which you mentioned in the readme is buggy.compiler/rustc_apfloat/src/lib.rs:64:10: unused Type 'Copy'- this is a derived trait, not a type.compiler/rustc_apfloat/src/lib.rs:576:14: unused Type '$t'- this should show what$tis, since the macro could be called multiple times.compiler/rustc_ast/src/ast.rs:163:20: unused Field '0'- this is forGenericArgs::AngleBracketed(AngleBracketedArgs). Not sure what's going on here, these are used quite a lot.compiler/rustc_codegen_ssa/src/common.rs:109:5: unused Mod 'temp_stable_hash_impls'- the impl in this mod is used, even though it has no other items.compiler/rustc_hir/src/hir.rs:3040:12: unused Method 'hir_id'- this is used outside of a macro, in compiler/rustc_middle/src/hir/map/mod.rs:304:28.compiler/rustc_hir/src/definitions.rs:94:12: unused Method 'enumerated_keys_and_path_hashes'- this is used in compiler/rustc_metadata/src/rmeta/encoder.rs:462:62compiler/rustc_middle/src/mir/mod.rs:2472:12: unused Method 'projections_and_spans'- this is used in compiler/rustc_middle/src/mir/mod.rs:2472:12: unused Method 'projections_and_spans':403
There are a bunch more macro issues, but I didn't report them all since you say in the readme they're imperfectly supported.
est31
Metadata
Metadata
Assignees
Labels
No labels