-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #82654 - JohnTitor:rollup-nkcdkzp, r=JohnTitor
Rollup of 10 pull requests Successful merges: - #82309 (Propagate RUSTDOCFLAGS in the environment when documenting) - #82403 (rustbuild: print out env vars on verbose rustc invocations) - #82507 (Rename the `tidy` binary to `rust-tidy`) - #82531 (Add GUI tests) - #82532 (Add `build.print_step_rusage` to config.toml) - #82543 (fix env var name in CI) - #82622 (Propagate `--test-args` for `x.py test src/tools/cargo`) - #82628 (Try to clarify GlobalAlloc::realloc documentation comment.) - #82630 (Fix a typo in the `find_anon_type` doc) - #82643 (Add more proc-macro attribute tests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
29 changed files
with
2,428 additions
and
391 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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,11 @@ | ||
// Test to ensure that you can click on the search input, whatever the width. | ||
// The PR which fixed it is: https://github.com/rust-lang/rust/pull/81592 | ||
goto: file://|DOC_PATH|/index.html | ||
size: (463, 700) | ||
// We first check that the search input isn't already focused. | ||
assert-false: ("input.search-input:focus") | ||
click: "input.search-input" | ||
reload: | ||
size: (750, 700) | ||
click: "input.search-input" | ||
assert: ("input.search-input:focus") |
This file contains 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,26 @@ | ||
// Check that the various shortcuts are working. | ||
goto: file://|DOC_PATH|/index.html | ||
// We first check that the search input isn't already focused. | ||
assert-false: "input.search-input:focus" | ||
press-key: "s" | ||
assert: "input.search-input:focus" | ||
press-key: "Escape" | ||
assert-false: "input.search-input:focus" | ||
// We now check for the help popup. | ||
press-key: "?" | ||
assert: ("#help", {"display": "flex"}) | ||
assert-false: "#help.hidden" | ||
press-key: "Escape" | ||
assert: ("#help.hidden", {"display": "none"}) | ||
// Check for the themes list. | ||
assert: ("#theme-choices", {"display": "none"}) | ||
press-key: "t" | ||
assert: ("#theme-choices", {"display": "block"}) | ||
press-key: "t" | ||
// We ensure that 't' hides back the menu. | ||
assert: ("#theme-choices", {"display": "none"}) | ||
press-key: "t" | ||
assert: ("#theme-choices", {"display": "block"}) | ||
press-key: "Escape" | ||
// We ensure that 'Escape' hides the menu too. | ||
assert: ("#theme-choices", {"display": "none"}) |
This file contains 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,26 @@ | ||
// check-pass | ||
// compile-flags: -Z span-debug --error-format human | ||
// aux-build:test-macros.rs | ||
|
||
#![feature(stmt_expr_attributes)] | ||
#![feature(custom_inner_attributes)] | ||
#![feature(rustc_attrs)] | ||
|
||
#![no_std] // Don't load unnecessary hygiene information from std | ||
extern crate std; | ||
|
||
#[macro_use] | ||
extern crate test_macros; | ||
|
||
trait MyTrait<T> {} | ||
struct MyStruct<const N: bool>; | ||
|
||
#[print_attr] | ||
fn foo<T: MyTrait<MyStruct<{ true }>>>() {} | ||
|
||
impl<T> MyTrait<T> for MyStruct<{true}> { | ||
#![print_attr] | ||
#![rustc_dummy] | ||
} | ||
|
||
fn main() {} |
Oops, something went wrong.