Skip to content

Commit 963966b

Browse files
authored
Rollup merge of rust-lang#73998 - euclio:search-index-determinism, r=nikomatsakis
add regression test for rust-lang#61216 Fixes rust-lang#61216.
2 parents 7674ed9 + 95bf7b7 commit 963966b

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-include ../tools.mk
2+
3+
# Assert that the search index is generated deterministically, regardless of the
4+
# order that crates are documented in.
5+
6+
# ignore-windows
7+
# Uses `diff`.
8+
9+
all:
10+
$(RUSTDOC) foo.rs -o $(TMPDIR)/foo_first
11+
$(RUSTDOC) bar.rs -o $(TMPDIR)/foo_first
12+
13+
$(RUSTDOC) bar.rs -o $(TMPDIR)/bar_first
14+
$(RUSTDOC) foo.rs -o $(TMPDIR)/bar_first
15+
16+
diff $(TMPDIR)/foo_first/search-index.js $(TMPDIR)/bar_first/search-index.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub struct Bar;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub struct Foo;

0 commit comments

Comments
 (0)