]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #77739 - est31:remove_unused_code, r=petrochenkov,varkor
authorYuki Okushi <huyuumi.dev@gmail.com>
Wed, 14 Oct 2020 22:32:29 +0000 (07:32 +0900)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 22:32:29 +0000 (07:32 +0900)
Remove unused code

Rustc has a builtin lint for detecting unused code inside a crate, but when an item is marked `pub`, the code, even if unused inside the entire workspace, is never marked as such. Therefore, I've built [warnalyzer](https://github.com/est31/warnalyzer) to detect unused items in a cross-crate setting.

Closes https://github.com/est31/warnalyzer/issues/2

1  2 
compiler/rustc_ast/src/token.rs
compiler/rustc_codegen_ssa/src/back/write.rs
compiler/rustc_hir_pretty/src/lib.rs
compiler/rustc_parse/src/lib.rs

Simple merge
Simple merge
Simple merge