Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0d49862
Clarify/add `must_use` messages for more `into_raw*` functions of `al…
zachs18 Jul 10, 2024
6d477d3
Add `must_use` to IntoRawFd/IntoRawSocket/IntoRawHandle's methods.
zachs18 Jul 10, 2024
84d84da
Explicitly ignore `into_raw_handle()` using `let _ =` in sys/pal/wind…
zachs18 Jul 11, 2024
649b431
Enable `std::io::copy` specialisation for `std::pipe::{PipeReader, Pi…
NobodyXu Jul 28, 2024
794434e
initial implementation of rustdoc nested aux-build
EtomicBomb Jul 24, 2024
d8211de
ordering and wrapping cross-crate-info tests
EtomicBomb Jul 24, 2024
f6f0ef4
reformatted rustdoc/cross-crate-info, fixing trailing newline issue
EtomicBomb Jul 24, 2024
12d87ee
file_stem and comment per notriddle
EtomicBomb Jul 25, 2024
f91da72
merge conflicts; fix rebase duplicating imports
EtomicBomb Jul 29, 2024
bd24763
Move a comment.
nnethercote Jul 29, 2024
70fcf9e
Insert some blank lines.
nnethercote Jul 29, 2024
bd23e0e
canonicalize path in another place to fix #128411
EtomicBomb Jul 31, 2024
281c2fd
Inline and remove `parse_local_mk`.
nnethercote Jul 31, 2024
fe647f0
Remove `LhsExpr`.
nnethercote Jul 31, 2024
2eb2ef1
Streamline attribute stitching on AST nodes.
nnethercote Jul 31, 2024
9d77d17
Move a comment to a better spot.
nnethercote Aug 1, 2024
d1f05fd
Distinguish the two kinds of token range.
nnethercote Jul 31, 2024
b485dd1
rewrite reproducible-build-2 to rmake
Oneirical Jun 28, 2024
94da7b1
rewrite stable-symbol-names to rmake
Oneirical Jun 28, 2024
3e0f186
Revert "Rollup merge of #128104 - mu001999-contrib:fix/128053, r=petr…
compiler-errors Jul 30, 2024
6cd4315
Revert "Rollup merge of #127017 - mu001999-contrib:dead/enhance, r=pn…
compiler-errors Jul 30, 2024
b0ca61f
Revert "Rollup merge of #127107 - mu001999-contrib:dead/enhance-2, r=…
compiler-errors Jul 30, 2024
89e0587
Revert "Rollup merge of #126618 - mu001999-contrib:dead/enhance, r=pn…
compiler-errors Jul 30, 2024
02f4762
Revert "Rollup merge of #126315 - mu001999-contrib:fix/126289, r=petr…
compiler-errors Jul 30, 2024
d51b4bc
Revert "Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pn…
compiler-errors Jul 30, 2024
9a6133b
Suppress new false-negatives that were masked by dead code analysis c…
compiler-errors Jul 30, 2024
41b017e
Add the `sha512`, `sm3` and `sm4` target features
sayantn Aug 1, 2024
0142573
Bless test fallout
compiler-errors Jul 30, 2024
c0d9357
rewrite cross-lang-lto-clang to rmake
Oneirical Jul 29, 2024
560e86d
rewrite cross-lang-lto-pgo-smoketest to rmake
Oneirical Jul 29, 2024
290a260
run cross-lang-lto-pgo-smoketest in CI by renaming it
Oneirical Aug 1, 2024
84e261e
chore: use shorthand initializer
nyurik Aug 2, 2024
c7b684e
Rollup merge of #126704 - sayantn:sha, r=Amanieu
jieyouxu Aug 3, 2024
83ba819
Rollup merge of #127095 - Oneirical:testiary-education, r=jieyouxu
jieyouxu Aug 3, 2024
c88a0a7
Rollup merge of #127586 - zachs18:more-must-use, r=cuviper
jieyouxu Aug 3, 2024
20b65ae
Rollup merge of #128161 - EtomicBomb:just-compiletest, r=notriddle
jieyouxu Aug 3, 2024
d33d31b
Rollup merge of #128303 - NobodyXu:specialise-for-pipe, r=cuviper
jieyouxu Aug 3, 2024
b3ebd3b
Rollup merge of #128356 - Oneirical:real-estate-reaLTOr, r=jieyouxu
jieyouxu Aug 3, 2024
8364347
Rollup merge of #128368 - nnethercote:rustfmt-tweaks, r=cuviper
jieyouxu Aug 3, 2024
a966ede
Rollup merge of #128404 - compiler-errors:revert-dead-code-changes, r…
jieyouxu Aug 3, 2024
47099a8
Rollup merge of #128483 - nnethercote:still-more-cfg-cleanups, r=petr…
jieyouxu Aug 3, 2024
31db40d
Rollup merge of #128557 - nyurik:dup-init, r=compiler-errors
jieyouxu Aug 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ordering and wrapping cross-crate-info tests
  • Loading branch information
EtomicBomb committed Jul 29, 2024
commit d8211def61d2b436d2a8335d745105e2de3ac172
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/command-list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"aux-codegen-backend",
"aux-crate",
"build-aux-docs",
"unique-doc-out-dir",
"build-fail",
"build-pass",
"check-fail",
Expand Down Expand Up @@ -227,6 +226,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"should-ice",
"stderr-per-bitwidth",
"test-mir-pass",
"unique-doc-out-dir",
"unset-exec-env",
"unset-rustc-env",
// Used by the tidy check `unknown_revision`.
Expand Down
13 changes: 7 additions & 6 deletions tests/rustdoc/cross-crate-info/cargo-transitive-no-index/s.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
//@ aux-build:t.rs
//@ build-aux-docs

//@ has q/struct.Quebec.html
//@ has s/struct.Sierra.html
//@ has t/trait.Tango.html
//@ hasraw search-index.js 'Quebec'
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
//@ hasraw s/struct.Sierra.html 'Tango'
//@ hasraw search-index.js 'Sierra'
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
//@ hasraw search-index.js 'Tango'
//@ has q/struct.Quebec.html
//@ has s/struct.Sierra.html
//@ 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.
// We document multiple crates into the same output directory, which
// merges the cross-crate information. Everything is available.

extern crate t;
pub struct Sierra;
Expand Down
21 changes: 11 additions & 10 deletions tests/rustdoc/cross-crate-info/cargo-transitive/s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options

//@ has t/trait.Tango.html
//@ hasraw search-index.js 'Quebec'
//@ has index.html '//ul[@class="all-items"]//a[@href="q/index.html"]' 'q'
//@ hasraw s/struct.Sierra.html 'Tango'
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
//@ has index.html '//ul[@class="all-items"]//a[@href="t/index.html"]' 't'
//@ 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'
//@ hasraw search-index.js 'Sierra'
//@ hasraw search-index.js 'Tango'
//@ has index.html
//@ 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.
// We document multiple crates into the same output directory, which
// merges the cross-crate information. Everything is available.

extern crate t;
pub struct Sierra;
Expand Down
11 changes: 6 additions & 5 deletions tests/rustdoc/cross-crate-info/cargo-two-no-index/e.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
//@ aux-build:f.rs
//@ build-aux-docs

//@ hasraw search-index.js 'Echo'
//@ hasraw search-index.js 'Foxtrot'
//@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
//@ has f/trait.Foxtrot.html
//@ 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
// document two crates in the same way that cargo does. do not provide
// --enable-index-page

extern crate f;
pub enum Echo {}
Expand Down
17 changes: 9 additions & 8 deletions tests/rustdoc/cross-crate-info/cargo-two/e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options

//@ hasraw search-index.js 'Echo'
//@ hasraw search-index.js 'Foxtrot'
//@ has index.html '//ul[@class="all-items"]//a[@href="e/index.html"]' 'e'
//@ has index.html '//ul[@class="all-items"]//a[@href="f/index.html"]' 'f'
//@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
//@ has f/trait.Foxtrot.html
//@ has index.html
//@ has index.html '//h1' 'List of all crates'
//@ has index.html '//ul[@class="all-items"]//a[@href="f/index.html"]' 'f'
//@ has index.html '//ul[@class="all-items"]//a[@href="e/index.html"]' 'e'
//@ has e/enum.Echo.html
//@ has index.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, writing them both into the same output directory
// document two crates in the same way that cargo does, writing them both
// into the same output directory

extern crate f;
pub enum Echo {}
Expand Down
14 changes: 7 additions & 7 deletions tests/rustdoc/cross-crate-info/index-on-last/e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options

//@ hasraw search-index.js 'Echo'
//@ hasraw search-index.js 'Foxtrot'
//@ has index.html '//ul[@class="all-items"]//a[@href="e/index.html"]' 'e'
//@ has index.html '//ul[@class="all-items"]//a[@href="f/index.html"]' 'f'
//@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
//@ has f/trait.Foxtrot.html
//@ has index.html
//@ has index.html '//h1' 'List of all crates'
//@ has index.html '//ul[@class="all-items"]//a[@href="f/index.html"]' 'f'
//@ has index.html '//ul[@class="all-items"]//a[@href="e/index.html"]' 'e'
//@ has e/enum.Echo.html
//@ has index.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'

// only declare --enable-index-page to the last rustdoc invocation

Expand Down
26 changes: 13 additions & 13 deletions tests/rustdoc/cross-crate-info/kitchen-sink/i.rs
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
//@ aux-build:q.rs
//@ aux-build:r.rs
//@ aux-build:t.rs
//@ aux-build:s.rs
//@ aux-build:t.rs
//@ build-aux-docs
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options

//@ hasraw search-index.js 'Quebec'
//@ hasraw search-index.js 'Sierra'
//@ has index.html '//h1' 'List of all crates'
//@ has index.html
//@ has s/struct.Sierra.html
//@ hasraw s/struct.Sierra.html 'Tango'
//@ has index.html '//ul[@class="all-items"]//a[@href="i/index.html"]' 'i'
//@ has q/struct.Quebec.html
//@ has type.impl/s/struct.Sierra.js
//@ hasraw type.impl/s/struct.Sierra.js 'Romeo'
//@ hasraw type.impl/s/struct.Sierra.js 'Tango'
//@ has index.html '//ul[@class="all-items"]//a[@href="q/index.html"]' 'q'
//@ has index.html '//ul[@class="all-items"]//a[@href="t/index.html"]' 't'
//@ has index.html '//ul[@class="all-items"]//a[@href="r/index.html"]' 'r'
//@ 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 r/type.Romeo.html
//@ has s/struct.Sierra.html
//@ has t/trait.Tango.html
//@ hasraw search-index.js 'Romeo'
//@ hasraw s/struct.Sierra.html 'Tango'
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
//@ has index.html '//h1' 'List of all crates'
//@ hasraw search-index.js 'Quebec'
//@ hasraw search-index.js 'Romeo'
//@ hasraw search-index.js 'Sierra'
//@ hasraw search-index.js 'Tango'
//@ has index.html '//ul[@class="all-items"]//a[@href="r/index.html"]' 'r'
//@ has type.impl/s/struct.Sierra.js
//@ hasraw type.impl/s/struct.Sierra.js 'Tango'
//@ hasraw type.impl/s/struct.Sierra.js 'Romeo'

// document everything in the default mode

Expand Down
6 changes: 3 additions & 3 deletions tests/rustdoc/cross-crate-info/single-crate-baseline/q.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options

//@ hasraw search-index.js 'Quebec'
//@ has index.html '//ul[@class="all-items"]//a[@href="q/index.html"]' 'q'
//@ has index.html '//h1' 'List of all crates'
//@ 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 q/struct.Quebec.html
//@ hasraw search-index.js 'Quebec'

// there's nothing cross-crate going on here

Expand Down
2 changes: 1 addition & 1 deletion tests/rustdoc/cross-crate-info/single-crate-no-index/q.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ build-aux-docs

//@ hasraw search-index.js 'Quebec'
//@ has q/struct.Quebec.html
//@ hasraw search-index.js 'Quebec'

// there's nothing cross-crate going on here

Expand Down
3 changes: 2 additions & 1 deletion tests/rustdoc/cross-crate-info/working-dir-examples/q.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

//@ has examples

// where will --scrape-examples-output-path resolve the path to be? should be the root output directory
// where will --scrape-examples-output-path resolve the path to be?
// should be the root output directory

pub struct Quebec;
11 changes: 6 additions & 5 deletions tests/rustdoc/cross-crate-info/write-docs-somewhere-else/e.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
//@ aux-build:f.rs
//@ build-aux-docs

//@ hasraw search-index.js 'Echo'
//@ !hasraw search-index.js 'Foxtrot'
//@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
//@ !has f/trait.Foxtrot.html
//@ 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'

// test the fact that our test runner will document this crate somewhere else
// test the fact that our test runner will document this crate somewhere
// else

extern crate f;
pub enum Echo {}
Expand Down