unreachable-pub lint for pub items not reachable from crate root

This is with deepest thanks to Vadim Petrochenkov for thorough review, and
resolves #45521.
This commit is contained in:
Zack M. Davis
2017-11-02 20:50:17 -07:00
parent e340996ff5
commit 085ec6d528
6 changed files with 469 additions and 0 deletions

View File

@@ -137,6 +137,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
PluginAsLibrary,
MutableTransmutes,
UnionsWithDropFields,
UnreachablePub,
);
add_builtin_with_new!(sess,