Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure we report a future incompat error in all cases
- Loading branch information
Showing
5 changed files
with
42 additions
and
16 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
10 changes: 7 additions & 3 deletions
10
src/test/ui/rfc1445/cant-hide-behind-doubly-indirect-embedded.stderr
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
warning: to use a constant of type `&&WrapInline` in a pattern, the constant's initializer must be trivial or all types in the constant must be annotated with `#[derive(PartialEq, Eq)]` | ||
warning: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]` | ||
--> $DIR/cant-hide-behind-doubly-indirect-embedded.rs:24:9 | ||
| | ||
LL | WRAP_DOUBLY_INDIRECT_INLINE => { panic!("WRAP_DOUBLY_INDIRECT_INLINE matched itself"); } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(nontrivial_structural_match)]` on by default | ||
note: the lint level is defined here | ||
--> $DIR/cant-hide-behind-doubly-indirect-embedded.rs:7:9 | ||
| | ||
LL | #![warn(indirect_structural_match)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #73448 <https://github.com/rust-lang/rust/issues/73448> | ||
= note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411> | ||
|
||
warning: 1 warning emitted | ||
|
10 changes: 7 additions & 3 deletions
10
src/test/ui/rfc1445/cant-hide-behind-doubly-indirect-param.stderr
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
warning: to use a constant of type `&&WrapParam<NoDerive>` in a pattern, the constant's initializer must be trivial or all types in the constant must be annotated with `#[derive(PartialEq, Eq)]` | ||
warning: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]` | ||
--> $DIR/cant-hide-behind-doubly-indirect-param.rs:24:9 | ||
| | ||
LL | WRAP_DOUBLY_INDIRECT_PARAM => { panic!("WRAP_DOUBLY_INDIRECT_PARAM matched itself"); } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(nontrivial_structural_match)]` on by default | ||
note: the lint level is defined here | ||
--> $DIR/cant-hide-behind-doubly-indirect-param.rs:7:9 | ||
| | ||
LL | #![warn(indirect_structural_match)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #73448 <https://github.com/rust-lang/rust/issues/73448> | ||
= note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411> | ||
|
||
warning: 1 warning emitted | ||
|
12 changes: 6 additions & 6 deletions
12
src/test/ui/rfc1445/issue-62307-match-ref-ref-forbidden-without-eq.stderr
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
warning: to use a constant of type `&&B` in a pattern, the constant's initializer must be trivial or all types in the constant must be annotated with `#[derive(PartialEq, Eq)]` | ||
warning: to use a constant of type `B` in a pattern, `B` must be annotated with `#[derive(PartialEq, Eq)]` | ||
--> $DIR/issue-62307-match-ref-ref-forbidden-without-eq.rs:31:9 | ||
| | ||
LL | RR_B1 => { println!("CLAIM RR0: {:?} matches {:?}", RR_B1, RR_B0); } | ||
| ^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/issue-62307-match-ref-ref-forbidden-without-eq.rs:13:36 | ||
--> $DIR/issue-62307-match-ref-ref-forbidden-without-eq.rs:13:9 | ||
| | ||
LL | #![warn(indirect_structural_match, nontrivial_structural_match)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #73448 <https://github.com/rust-lang/rust/issues/73448> | ||
= note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411> | ||
|
||
warning: to use a constant of type `&&B` in a pattern, the constant's initializer must be trivial or all types in the constant must be annotated with `#[derive(PartialEq, Eq)]` | ||
warning: to use a constant of type `B` in a pattern, `B` must be annotated with `#[derive(PartialEq, Eq)]` | ||
--> $DIR/issue-62307-match-ref-ref-forbidden-without-eq.rs:38:9 | ||
| | ||
LL | RR_B1 => { println!("CLAIM RR1: {:?} matches {:?}", RR_B1, RR_B1); } | ||
| ^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #73448 <https://github.com/rust-lang/rust/issues/73448> | ||
= note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411> | ||
|
||
warning: 2 warnings emitted | ||
|