]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #104383 - WaffleLapkin:rustc_undiagnostic_item, r=compiler-errors
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 15 Nov 2022 00:40:44 +0000 (01:40 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Nov 2022 00:40:44 +0000 (01:40 +0100)
commit2c29b05fb24095b0bc2e792ffed3df7496cc2a59
tree9d888bb5c6cd877858063b5d1c4dd888dee7918f
parent0a3cb1ed8138900e8697d42988ee41250c3d69ad
parent29fe28fcfc01f6b850744cc918dbc07a82978755
Rollup merge of #104383 - WaffleLapkin:rustc_undiagnostic_item, r=compiler-errors

Remove unused symbols and diagnostic items

As the title suggests, this removes unused symbols from `sym::` and `#[rustc_diagnostic_item]` annotations that weren't mentioned anywhere.

Originally I tried to use grep, to find symbols and item names that are never mentioned via `sym::name`, however this produced a lot of false positives (?), for example clippy matching on `Symbol::as_str` or macros "implicitly" adding `sym::`. I ended up fixing all these false positives (?) by hand, but tbh I'm not sure if it was worth it...
compiler/rustc_span/src/symbol.rs
library/core/src/ops/function.rs