diff options
| author | Josh <keeperofdakeys@gmail.com> | 2017-01-19 08:31:29 +1100 |
|---|---|---|
| committer | Josh <keeperofdakeys@gmail.com> | 2017-01-19 08:31:29 +1100 |
| commit | c759aea5b3426ebf6f6e3caf7d9c60721a26cb32 (patch) | |
| tree | a56412d09d69ce532e5779bf64ab9f7b86c711c1 | |
| parent | ff591b6dc0e0a107c778d0bb4cf103881527e1a5 (diff) | |
| download | rust-c759aea5b3426ebf6f6e3caf7d9c60721a26cb32.tar.gz rust-c759aea5b3426ebf6f6e3caf7d9c60721a26cb32.zip | |
Stop warning when doc testing proc macro crates
Add the actually_rustdoc option to the session that is passed to phase_2_configure_and_expand function inside the rustdoc test module. This prevents the warning code from triggering when parsing proc_macro_derive attributes, just like when `--test` is normally invoked.
| -rw-r--r-- | src/librustdoc/test.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index c242eea2362..26f331ac7d1 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -67,6 +67,7 @@ pub fn run(input: &str, crate_types: vec![config::CrateTypeDylib], externs: externs.clone(), unstable_features: UnstableFeatures::from_environment(), + actually_rustdoc: true, ..config::basic_options().clone() }; |
