]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/lib.rs
Improve Rustdoc's handling of procedural macros
[rust.git] / src / librustdoc / lib.rs
index e30b35937db9fbf55f518b43273401287f8b48fa..bb83ff64b2f181026ed10c2ecc280716c5d46f44 100644 (file)
@@ -46,7 +46,7 @@
 use std::process;
 
 use rustc::session::{early_warn, early_error};
-use rustc::session::config::{ErrorOutputType, RustcOptGroup};
+use rustc::session::config::{ErrorOutputType, RustcOptGroup, make_crate_type_option};
 
 #[macro_use]
 mod externalfiles;
@@ -132,6 +132,7 @@ fn opts() -> Vec<RustcOptGroup> {
         stable("crate-name", |o| {
             o.optopt("", "crate-name", "specify the name of this crate", "NAME")
         }),
+        make_crate_type_option(),
         stable("L", |o| {
             o.optmulti("L", "library-path", "directory to add to crate search path",
                        "DIR")