File tree Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ run-make/interdependent-c-libraries/Makefile
3838run-make/issue-107094/Makefile
3939run-make/issue-14698/Makefile
4040run-make/issue-15460/Makefile
41- run-make/issue-22131/Makefile
4241run-make/issue-26006/Makefile
4342run-make/issue-28595/Makefile
4443run-make/issue-33329/Makefile
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ // A rustdoc bug caused the `feature=bar` syntax for the cfg flag to be interpreted
2+ // wrongly, with `feature=bar` instead of just `bar` being understood as the feature name.
3+ // After this was fixed in #22135, this test checks that this bug does not make a resurgence.
4+ // See https://github.com/rust-lang/rust/issues/22131
5+
6+ //FIXME(Oneirical): try test-various
7+
8+ use run_make_support:: { rustc, rustdoc} ;
9+
10+ fn main ( ) {
11+ rustc ( ) . cfg ( r#"feature="bar""# ) . crate_type ( "lib" ) . input ( "foo.rs" ) . run ( ) ;
12+ rustdoc ( )
13+ . arg ( "--test" )
14+ . arg ( "--cfg" )
15+ . arg ( r#"feature="bar""# )
16+ . input ( "foo.rs" )
17+ . run ( )
18+ . assert_stdout_contains ( "foo.rs - foo (line 1) ... ok" ) ;
19+ }
You can’t perform that action at this time.
0 commit comments