1
Fork 0

Split out rustdoc pass to strip private imports

This commit is contained in:
mitaa 2016-03-05 11:20:34 +01:00
parent f6e125f04a
commit 688e52201e
5 changed files with 51 additions and 8 deletions

View file

@ -107,6 +107,8 @@ const PASSES: &'static [Pass] = &[
"concatenates all document attributes into one document attribute"),
("strip-private", passes::strip_private,
"strips all private items from a crate which cannot be seen externally"),
("strip-priv-imports", passes::strip_priv_imports,
"strips all private import statements (`use`, `extern crate`) from a crate"),
];
const DEFAULT_PASSES: &'static [&'static str] = &[