File tree 4 files changed +19
-9
lines changed
4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ run-make/interdependent-c-libraries/Makefile
44
44
run-make/issue-107094/Makefile
45
45
run-make/issue-14698/Makefile
46
46
run-make/issue-15460/Makefile
47
- run-make/issue-22131/Makefile
48
47
run-make/issue-25581/Makefile
49
48
run-make/issue-26006/Makefile
50
49
run-make/issue-28595/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