File tree Expand file tree Collapse file tree 27 files changed +282
-0
lines changed
tests/rustdoc/cross-crate-info
cargo-transitive-no-index
write-docs-somewhere-else Expand file tree Collapse file tree 27 files changed +282
-0
lines changed Original file line number Diff line number Diff line change 1+ //@ build-aux-docs
2+
3+
4+ pub struct Quebec ;
Original file line number Diff line number Diff line change 1+ //@ aux-build:q.rs
2+ //@ build-aux-docs
3+
4+
5+ extern crate q;
6+ pub trait Tango { }
Original file line number Diff line number Diff line change 1+ //@ aux-build:t.rs
2+ //@ build-aux-docs
3+
4+ //@ has t/trait.Tango.html
5+ //@ hasraw search-index.js 'Quebec'
6+ //@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
7+ //@ hasraw s/struct.Sierra.html 'Tango'
8+ //@ hasraw search-index.js 'Sierra'
9+ //@ hasraw search-index.js 'Tango'
10+ //@ has q/struct.Quebec.html
11+ //@ has s/struct.Sierra.html
12+
13+ // We document multiple crates into the same output directory, which merges the cross-crate information. Everything is available.
14+
15+ extern crate t;
16+ pub struct Sierra ;
17+ impl t:: Tango for Sierra { }
Original file line number Diff line number Diff line change 1+ //@ build-aux-docs
2+ //@ doc-flags:--enable-index-page
3+ //@ doc-flags:-Zunstable-options
4+
5+
6+ pub struct Quebec ;
Original file line number Diff line number Diff line change 1+ //@ aux-build:q.rs
2+ //@ build-aux-docs
3+ //@ doc-flags:--enable-index-page
4+ //@ doc-flags:-Zunstable-options
5+
6+
7+ extern crate q;
8+ pub trait Tango { }
Original file line number Diff line number Diff line change 1+ //@ aux-build:t.rs
2+ //@ build-aux-docs
3+ //@ doc-flags:--enable-index-page
4+ //@ doc-flags:-Zunstable-options
5+
6+ //@ has t/trait.Tango.html
7+ //@ hasraw search-index.js 'Quebec'
8+ //@ has index.html '//ul[@class="all-items"]//a[@href="q/index.html"]' 'q'
9+ //@ hasraw s/struct.Sierra.html 'Tango'
10+ //@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
11+ //@ has index.html '//ul[@class="all-items"]//a[@href="t/index.html"]' 't'
12+ //@ has index.html '//h1' 'List of all crates'
13+ //@ has index.html '//ul[@class="all-items"]//a[@href="s/index.html"]' 's'
14+ //@ hasraw search-index.js 'Sierra'
15+ //@ hasraw search-index.js 'Tango'
16+ //@ has index.html
17+ //@ has q/struct.Quebec.html
18+ //@ has s/struct.Sierra.html
19+
20+ // We document multiple crates into the same output directory, which merges the cross-crate information. Everything is available.
21+
22+ extern crate t;
23+ pub struct Sierra ;
24+ impl t:: Tango for Sierra { }
Original file line number Diff line number Diff line change 1+ //@ build-aux-docs
2+
3+
4+ pub trait Foxtrot { }
Original file line number Diff line number Diff line change 1+ //@ aux-build:f.rs
2+ //@ build-aux-docs
3+
4+ //@ hasraw search-index.js 'Echo'
5+ //@ hasraw search-index.js 'Foxtrot'
6+ //@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
7+ //@ has f/trait.Foxtrot.html
8+ //@ has e/enum.Echo.html
9+ //@ hasraw e/enum.Echo.html 'Foxtrot'
10+
11+ // document two crates in the same way that cargo does. do not provide --enable-index-page
12+
13+ extern crate f;
14+ pub enum Echo { }
15+ impl f:: Foxtrot for Echo { }
Original file line number Diff line number Diff line change 1+ //@ build-aux-docs
2+ //@ doc-flags:--enable-index-page
3+ //@ doc-flags:-Zunstable-options
4+
5+
6+ pub trait Foxtrot { }
Original file line number Diff line number Diff line change 1+ //@ aux-build:f.rs
2+ //@ build-aux-docs
3+ //@ doc-flags:--enable-index-page
4+ //@ doc-flags:-Zunstable-options
5+
6+ //@ hasraw search-index.js 'Echo'
7+ //@ hasraw search-index.js 'Foxtrot'
8+ //@ has index.html '//ul[@class="all-items"]//a[@href="e/index.html"]' 'e'
9+ //@ has index.html '//ul[@class="all-items"]//a[@href="f/index.html"]' 'f'
10+ //@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
11+ //@ has f/trait.Foxtrot.html
12+ //@ has index.html '//h1' 'List of all crates'
13+ //@ has e/enum.Echo.html
14+ //@ has index.html
15+ //@ hasraw e/enum.Echo.html 'Foxtrot'
16+
17+ // document two crates in the same way that cargo does, writing them both into the same output directory
18+
19+ extern crate f;
20+ pub enum Echo { }
21+ impl f:: Foxtrot for Echo { }
You can’t perform that action at this time.
0 commit comments