mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Rollup merge of #73998 - euclio:search-index-determinism, r=nikomatsakis
add regression test for #61216 Fixes #61216.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
-include ../tools.mk
|
||||
|
||||
# Assert that the search index is generated deterministically, regardless of the
|
||||
# order that crates are documented in.
|
||||
|
||||
# ignore-windows
|
||||
# Uses `diff`.
|
||||
|
||||
all:
|
||||
$(RUSTDOC) foo.rs -o $(TMPDIR)/foo_first
|
||||
$(RUSTDOC) bar.rs -o $(TMPDIR)/foo_first
|
||||
|
||||
$(RUSTDOC) bar.rs -o $(TMPDIR)/bar_first
|
||||
$(RUSTDOC) foo.rs -o $(TMPDIR)/bar_first
|
||||
|
||||
diff $(TMPDIR)/foo_first/search-index.js $(TMPDIR)/bar_first/search-index.js
|
||||
@@ -0,0 +1 @@
|
||||
pub struct Bar;
|
||||
@@ -0,0 +1 @@
|
||||
pub struct Foo;
|
||||
Reference in New Issue
Block a user