Skip to content

Commit c759aea

Browse files
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.
1 parent ff591b6 commit c759aea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ pub fn run(input: &str,
6767
crate_types: vec![config::CrateTypeDylib],
6868
externs: externs.clone(),
6969
unstable_features: UnstableFeatures::from_environment(),
70+
actually_rustdoc: true,
7071
..config::basic_options().clone()
7172
};
7273

0 commit comments

Comments
 (0)