-
Notifications
You must be signed in to change notification settings - Fork 13.4k
nested aux-build in tests/rustdoc/ tests #128161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
794434e
initial implementation of rustdoc nested aux-build
EtomicBomb d8211de
ordering and wrapping cross-crate-info tests
EtomicBomb f6f0ef4
reformatted rustdoc/cross-crate-info, fixing trailing newline issue
EtomicBomb 12d87ee
file_stem and comment per notriddle
EtomicBomb f91da72
merge conflicts; fix rebase duplicating imports
EtomicBomb bd23e0e
canonicalize path in another place to fix #128411
EtomicBomb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/rustdoc/cross-crate-info/cargo-transitive-no-index/auxiliary/q.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//@ build-aux-docs | ||
pub struct Quebec; |
4 changes: 4 additions & 0 deletions
4
tests/rustdoc/cross-crate-info/cargo-transitive-no-index/auxiliary/t.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
//@ aux-build:q.rs | ||
//@ build-aux-docs | ||
extern crate q; | ||
pub trait Tango {} |
16 changes: 16 additions & 0 deletions
16
tests/rustdoc/cross-crate-info/cargo-transitive-no-index/s.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//@ aux-build:t.rs | ||
//@ build-aux-docs | ||
//@ has q/struct.Quebec.html | ||
//@ has s/struct.Sierra.html | ||
//@ has t/trait.Tango.html | ||
//@ hasraw s/struct.Sierra.html 'Tango' | ||
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html' | ||
//@ hasraw search-index.js 'Tango' | ||
//@ hasraw search-index.js 'Sierra' | ||
//@ hasraw search-index.js 'Quebec' | ||
|
||
// We document multiple crates into the same output directory, which | ||
// merges the cross-crate information. Everything is available. | ||
extern crate t; | ||
pub struct Sierra; | ||
impl t::Tango for Sierra {} |
5 changes: 5 additions & 0 deletions
5
tests/rustdoc/cross-crate-info/cargo-transitive/auxiliary/q.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//@ build-aux-docs | ||
//@ doc-flags:--enable-index-page | ||
//@ doc-flags:-Zunstable-options | ||
|
||
pub struct Quebec; |
7 changes: 7 additions & 0 deletions
7
tests/rustdoc/cross-crate-info/cargo-transitive/auxiliary/t.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//@ aux-build:q.rs | ||
//@ build-aux-docs | ||
//@ doc-flags:--enable-index-page | ||
//@ doc-flags:-Zunstable-options | ||
|
||
extern crate q; | ||
pub trait Tango {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//@ aux-build:t.rs | ||
//@ build-aux-docs | ||
//@ doc-flags:--enable-index-page | ||
//@ doc-flags:-Zunstable-options | ||
|
||
//@ has index.html | ||
//@ has index.html '//h1' 'List of all crates' | ||
//@ has index.html '//ul[@class="all-items"]//a[@href="q/index.html"]' 'q' | ||
//@ has index.html '//ul[@class="all-items"]//a[@href="s/index.html"]' 's' | ||
//@ has index.html '//ul[@class="all-items"]//a[@href="t/index.html"]' 't' | ||
//@ has q/struct.Quebec.html | ||
//@ has s/struct.Sierra.html | ||
//@ has t/trait.Tango.html | ||
//@ hasraw s/struct.Sierra.html 'Tango' | ||
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html' | ||
//@ hasraw search-index.js 'Tango' | ||
//@ hasraw search-index.js 'Sierra' | ||
//@ hasraw search-index.js 'Quebec' | ||
|
||
// We document multiple crates into the same output directory, which | ||
// merges the cross-crate information. Everything is available. | ||
extern crate t; | ||
pub struct Sierra; | ||
impl t::Tango for Sierra {} |
2 changes: 2 additions & 0 deletions
2
tests/rustdoc/cross-crate-info/cargo-two-no-index/auxiliary/f.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//@ build-aux-docs | ||
pub trait Foxtrot {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//@ aux-build:f.rs | ||
//@ build-aux-docs | ||
//@ has e/enum.Echo.html | ||
//@ has f/trait.Foxtrot.html | ||
//@ hasraw e/enum.Echo.html 'Foxtrot' | ||
//@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html' | ||
//@ hasraw search-index.js 'Foxtrot' | ||
//@ hasraw search-index.js 'Echo' | ||
|
||
// document two crates in the same way that cargo does. do not provide | ||
// --enable-index-page | ||
extern crate f; | ||
pub enum Echo {} | ||
impl f::Foxtrot for Echo {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//@ build-aux-docs | ||
//@ doc-flags:--enable-index-page | ||
//@ doc-flags:-Zunstable-options | ||
|
||
pub trait Foxtrot {} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.