forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#132336 - matthiaskrgr:rollup-ay110ws, r=matth…
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#129394 (Don't lint `irrefutable_let_patterns` on leading patterns if `else if` let-chains) - rust-lang#131096 (rustdoc: Remove usage of `allow(unused)` attribute on `no_run` merged doctests) - rust-lang#132322 (powerpc64-ibm-aix: update maintainters) - rust-lang#132327 (Point to Fuchsia team in platform support docs) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
10 changed files
with
149 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This test ensures that the 2024 edition merged doctest will not use `#[allow(unused)]`. | ||
|
||
//@ compile-flags:--test -Zunstable-options --edition 2024 | ||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR" | ||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME" | ||
//@ failure-status: 101 | ||
|
||
#![doc(test(attr(allow(unused_variables), deny(warnings))))] | ||
|
||
/// Example | ||
/// | ||
/// ```rust,no_run | ||
/// trait T { fn f(); } | ||
/// ``` | ||
pub fn f() {} |
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,29 @@ | ||
|
||
running 1 test | ||
test $DIR/dead-code-2024.rs - f (line 12) - compile ... FAILED | ||
|
||
failures: | ||
|
||
---- $DIR/dead-code-2024.rs - f (line 12) stdout ---- | ||
error: trait `T` is never used | ||
--> $DIR/dead-code-2024.rs:13:7 | ||
| | ||
LL | trait T { fn f(); } | ||
| ^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/dead-code-2024.rs:11:9 | ||
| | ||
LL | #![deny(warnings)] | ||
| ^^^^^^^^ | ||
= note: `#[deny(dead_code)]` implied by `#[deny(warnings)]` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
Couldn't compile the test. | ||
|
||
failures: | ||
$DIR/dead-code-2024.rs - f (line 12) | ||
|
||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
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,15 @@ | ||
// This test ensures that the doctest will not use `#[allow(unused)]`. | ||
|
||
//@ compile-flags:--test | ||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR" | ||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME" | ||
//@ failure-status: 101 | ||
|
||
#![doc(test(attr(allow(unused_variables), deny(warnings))))] | ||
|
||
/// Example | ||
/// | ||
/// ```rust,no_run | ||
/// trait T { fn f(); } | ||
/// ``` | ||
pub fn f() {} |
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,29 @@ | ||
|
||
running 1 test | ||
test $DIR/dead-code.rs - f (line 12) - compile ... FAILED | ||
|
||
failures: | ||
|
||
---- $DIR/dead-code.rs - f (line 12) stdout ---- | ||
error: trait `T` is never used | ||
--> $DIR/dead-code.rs:13:7 | ||
| | ||
LL | trait T { fn f(); } | ||
| ^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/dead-code.rs:11:9 | ||
| | ||
LL | #![deny(warnings)] | ||
| ^^^^^^^^ | ||
= note: `#[deny(dead_code)]` implied by `#[deny(warnings)]` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
Couldn't compile the test. | ||
|
||
failures: | ||
$DIR/dead-code.rs - f (line 12) | ||
|
||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | ||
|
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