We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7674ed9 + 95bf7b7 commit 963966bCopy full SHA for 963966b
src/test/run-make-fulldeps/rustdoc-determinism/Makefile
@@ -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
src/test/run-make-fulldeps/rustdoc-determinism/bar.rs
@@ -0,0 +1 @@
+pub struct Bar;
src/test/run-make-fulldeps/rustdoc-determinism/foo.rs
+pub struct Foo;
0 commit comments