3 files changed +20
-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 = String :: from_utf8 ( rustdoc ( ) . input ( "input.rs" ) . arg ( "--test" ) . command_output ( ) . stdout ) . unwrap ( ) ;
8
+
9
+ let should_contains = & [
10
+ "input.rs - foo (line 5)" ,
11
+ "input.rs:7:15" ,
12
+ "input.rs - bar (line 15)" ,
13
+ "input.rs:17:15" ,
14
+ "input.rs - bar (line 24)" ,
15
+ "input.rs:26:15" ,
16
+ ] ;
17
+ for text in should_contains {
18
+ assert ! ( output. contains( text) , "output doesn't contains {:?}" , text) ;
19
+ }
20
+ }
0 commit comments