]> git.lizzy.rs Git - rust.git/commit
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)
commit022d20759baa6ebc9dcbe803aec1f19216c47d7f
treed57199f3c4a32c27132387b159fbd01377c9fc05
parent35210a66edcbea56765493bb6e85e55659b21e59
parent215cd36e1cff1806429806cb5be81f6d1a5f98b0
Rollup merge of #77739 - est31:remove_unused_code, r=petrochenkov,varkor

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
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