3 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ run-make/rlib-format-packed-bundled-libs-3/Makefile
244
244
run-make/rlib-format-packed-bundled-libs/Makefile
245
245
run-make/rmeta-preferred/Makefile
246
246
run-make/rustc-macro-dep-files/Makefile
247
- run-make/rustdoc-error-lines/Makefile
248
247
run-make/rustdoc-io-error/Makefile
249
248
run-make/rustdoc-map-file/Makefile
250
249
run-make/rustdoc-output-path/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Assert that the search index is generated deterministically, regardless of the
2
+ // order that crates are documented in.
3
+
4
+ use run_make_support:: rustdoc;
5
+
6
+ fn main ( ) {
7
+ let output =
8
+ String :: from_utf8 ( rustdoc ( ) . input ( "input.rs" ) . arg ( "--test" ) . command_output ( ) . stdout )
9
+ . unwrap ( ) ;
10
+
11
+ let should_contain = & [
12
+ "input.rs - foo (line 5)" ,
13
+ "input.rs:7:15" ,
14
+ "input.rs - bar (line 15)" ,
15
+ "input.rs:17:15" ,
16
+ "input.rs - bar (line 24)" ,
17
+ "input.rs:26:15" ,
18
+ ] ;
19
+ for text in should_contain {
20
+ assert ! ( output. contains( text) , "output doesn't contains {:?}" , text) ;
21
+ }
22
+ }
0 commit comments