mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
update the tracking issue for structural match violations
and bless a test I missed
This commit is contained in:
parent
48abca761a
commit
45d01b8131
@ -2283,7 +2283,7 @@ declare_lint! {
|
|||||||
"constant used in pattern contains value of non-structural-match type in a field or a variant",
|
"constant used in pattern contains value of non-structural-match type in a field or a variant",
|
||||||
@future_incompatible = FutureIncompatibleInfo {
|
@future_incompatible = FutureIncompatibleInfo {
|
||||||
reason: FutureIncompatibilityReason::FutureReleaseErrorReportInDeps,
|
reason: FutureIncompatibilityReason::FutureReleaseErrorReportInDeps,
|
||||||
reference: "issue #62411 <https://github.com/rust-lang/rust/issues/62411>",
|
reference: "issue #120362 <https://github.com/rust-lang/rust/issues/120362>",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2339,7 +2339,7 @@ declare_lint! {
|
|||||||
"pointers are not structural-match",
|
"pointers are not structural-match",
|
||||||
@future_incompatible = FutureIncompatibleInfo {
|
@future_incompatible = FutureIncompatibleInfo {
|
||||||
reason: FutureIncompatibilityReason::FutureReleaseErrorReportInDeps,
|
reason: FutureIncompatibilityReason::FutureReleaseErrorReportInDeps,
|
||||||
reference: "issue #62411 <https://github.com/rust-lang/rust/issues/70861>",
|
reference: "issue #120362 <https://github.com/rust-lang/rust/issues/120362>",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ LL | NUMBER_POINTER => (),
|
|||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
warning: 1 warning emitted
|
warning: 1 warning emitted
|
||||||
@ -18,6 +18,6 @@ LL | NUMBER_POINTER => (),
|
|||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ LL | C => {}
|
|||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
||||||
|
|
|
|
||||||
@ -19,7 +19,7 @@ LL | C_INNER => {}
|
|||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:30:9
|
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:30:9
|
||||||
@ -28,7 +28,7 @@ LL | D => {}
|
|||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:36:9
|
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:36:9
|
||||||
@ -37,7 +37,7 @@ LL | STR => {}
|
|||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
error: aborting due to 4 previous errors
|
error: aborting due to 4 previous errors
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ LL | C => {}
|
|||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
||||||
|
|
|
|
||||||
@ -64,7 +64,7 @@ LL | C_INNER => {}
|
|||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
||||||
|
|
|
|
||||||
@ -79,7 +79,7 @@ LL | D => {}
|
|||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
||||||
|
|
|
|
||||||
@ -94,7 +94,7 @@ LL | STR => {}
|
|||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
--> $DIR/issue-34784-match-on-non-int-raw-ptr.rs:1:9
|
||||||
|
|
|
|
||||||
|
@ -5,7 +5,7 @@ LL | FOO => println!("foo"),
|
|||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-44333.rs:3:9
|
--> $DIR/issue-44333.rs:3:9
|
||||||
|
|
|
|
||||||
@ -19,7 +19,7 @@ LL | BAR => println!("bar"),
|
|||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: 2 warnings emitted
|
warning: 2 warnings emitted
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ LL | FOO => println!("foo"),
|
|||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-44333.rs:3:9
|
--> $DIR/issue-44333.rs:3:9
|
||||||
|
|
|
|
||||||
@ -46,7 +46,7 @@ LL | BAR => println!("bar"),
|
|||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-44333.rs:3:9
|
--> $DIR/issue-44333.rs:3:9
|
||||||
|
|
|
|
||||||
|
@ -100,5 +100,5 @@ fn main() {
|
|||||||
//~| NOTE the traits must be derived
|
//~| NOTE the traits must be derived
|
||||||
//~| NOTE StructuralPartialEq.html for details
|
//~| NOTE StructuralPartialEq.html for details
|
||||||
//~| WARN previously accepted by the compiler but is being phased out
|
//~| WARN previously accepted by the compiler but is being phased out
|
||||||
//~| NOTE for more information, see issue #62411
|
//~| NOTE for more information, see
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ LL | match &Some(NoDerive) { ADDR_OF => dbg!(ADDR_OF), _ => panic!("whoops")
|
|||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
@ -105,7 +105,7 @@ LL | match &Some(NoDerive) { ADDR_OF => dbg!(ADDR_OF), _ => panic!("whoops")
|
|||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
|
17
tests/ui/consts/issue-89088.stderr
Normal file
17
tests/ui/consts/issue-89088.stderr
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Future incompatibility report: Future breakage diagnostic:
|
||||||
|
warning: to use a constant of type `Cow<'_, str>` in a pattern, `Cow<'_, str>` must be annotated with `#[derive(PartialEq)]`
|
||||||
|
--> $DIR/issue-89088.rs:19:9
|
||||||
|
|
|
||||||
|
LL | FOO => todo!(),
|
||||||
|
| ^^^
|
||||||
|
|
|
||||||
|
= 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 #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
|
note: the lint level is defined here
|
||||||
|
--> $DIR/issue-89088.rs:5:10
|
||||||
|
|
|
||||||
|
LL | #![allow(indirect_structural_match)]
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
@ -17,7 +17,7 @@ LL | if let CONSTANT = &&MyType {
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
|
@ -5,7 +5,7 @@ LL | QUUX => {}
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
@ -15,7 +15,7 @@ LL | QUUX => {}
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/consts-opaque.rs:108:9
|
--> $DIR/consts-opaque.rs:108:9
|
||||||
@ -24,7 +24,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/consts-opaque.rs:110:9
|
--> $DIR/consts-opaque.rs:110:9
|
||||||
@ -33,7 +33,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/consts-opaque.rs:117:9
|
--> $DIR/consts-opaque.rs:117:9
|
||||||
@ -42,7 +42,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/consts-opaque.rs:127:9
|
--> $DIR/consts-opaque.rs:127:9
|
||||||
@ -51,7 +51,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/consts-opaque.rs:139:9
|
--> $DIR/consts-opaque.rs:139:9
|
||||||
@ -60,7 +60,7 @@ LL | WHOKNOWSQUUX => {}
|
|||||||
| ^^^^^^^^^^^^
|
| ^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/consts-opaque.rs:142:9
|
--> $DIR/consts-opaque.rs:142:9
|
||||||
@ -69,7 +69,7 @@ LL | WHOKNOWSQUUX => {}
|
|||||||
| ^^^^^^^^^^^^
|
| ^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
error: unreachable pattern
|
error: unreachable pattern
|
||||||
--> $DIR/consts-opaque.rs:48:9
|
--> $DIR/consts-opaque.rs:48:9
|
||||||
@ -174,7 +174,7 @@ LL | QUUX => {}
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -185,7 +185,7 @@ LL | QUUX => {}
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -196,7 +196,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -207,7 +207,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -218,7 +218,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -229,7 +229,7 @@ LL | WRAPQUUX => {}
|
|||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -240,7 +240,7 @@ LL | WHOKNOWSQUUX => {}
|
|||||||
| ^^^^^^^^^^^^
|
| ^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -251,6 +251,6 @@ LL | WHOKNOWSQUUX => {}
|
|||||||
| ^^^^^^^^^^^^
|
| ^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ LL | WRAP_DOUBLY_INDIRECT_INLINE => { panic!("WRAP_DOUBLY_INDIRECT_INLIN
|
|||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
@ -24,7 +24,7 @@ LL | WRAP_DOUBLY_INDIRECT_INLINE => { panic!("WRAP_DOUBLY_INDIRECT_INLIN
|
|||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
|
@ -5,7 +5,7 @@ LL | WRAP_DOUBLY_INDIRECT_PARAM => { panic!("WRAP_DOUBLY_INDIRECT_PARAM
|
|||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
@ -24,7 +24,7 @@ LL | WRAP_DOUBLY_INDIRECT_PARAM => { panic!("WRAP_DOUBLY_INDIRECT_PARAM
|
|||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
|
@ -5,7 +5,7 @@ LL | WRAP_INDIRECT_INLINE => { panic!("WRAP_INDIRECT_INLINE matched itse
|
|||||||
| ^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
@ -24,7 +24,7 @@ LL | WRAP_INDIRECT_INLINE => { panic!("WRAP_INDIRECT_INLINE matched itse
|
|||||||
| ^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
|
@ -5,7 +5,7 @@ LL | WRAP_INDIRECT_PARAM => { panic!("WRAP_INDIRECT_PARAM matched itself
|
|||||||
| ^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
@ -24,7 +24,7 @@ LL | WRAP_INDIRECT_PARAM => { panic!("WRAP_INDIRECT_PARAM matched itself
|
|||||||
| ^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
|
@ -5,7 +5,7 @@ LL | Wrap(CFN1) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
@ -15,7 +15,7 @@ LL | Wrap(CFN2) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:61:14
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:61:14
|
||||||
@ -24,7 +24,7 @@ LL | Wrap(CFN3) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:70:14
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:70:14
|
||||||
@ -33,7 +33,7 @@ LL | Wrap(CFN4) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:79:14
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:79:14
|
||||||
@ -42,7 +42,7 @@ LL | Wrap(CFN5) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:88:14
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:88:14
|
||||||
@ -51,7 +51,7 @@ LL | Wrap(CFN6) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:97:14
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:97:14
|
||||||
@ -60,7 +60,7 @@ LL | Wrap(CFN7) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:106:14
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:106:14
|
||||||
@ -69,7 +69,7 @@ LL | Wrap(CFN8) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:115:14
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:115:14
|
||||||
@ -78,7 +78,7 @@ LL | Wrap(CFN9) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
|
||||||
--> $DIR/fn-ptr-is-structurally-matchable.rs:138:9
|
--> $DIR/fn-ptr-is-structurally-matchable.rs:138:9
|
||||||
@ -87,7 +87,7 @@ LL | CFOO => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: 10 warnings emitted
|
warning: 10 warnings emitted
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ LL | Wrap(CFN1) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -110,7 +110,7 @@ LL | Wrap(CFN2) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -121,7 +121,7 @@ LL | Wrap(CFN3) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -132,7 +132,7 @@ LL | Wrap(CFN4) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -143,7 +143,7 @@ LL | Wrap(CFN5) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -154,7 +154,7 @@ LL | Wrap(CFN6) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -165,7 +165,7 @@ LL | Wrap(CFN7) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -176,7 +176,7 @@ LL | Wrap(CFN8) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -187,7 +187,7 @@ LL | Wrap(CFN9) => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
Future breakage diagnostic:
|
Future breakage diagnostic:
|
||||||
@ -198,6 +198,6 @@ LL | CFOO => count += 1,
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: `#[warn(pointer_structural_match)]` on by default
|
= note: `#[warn(pointer_structural_match)]` on by default
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ LL | RR_B1 => { println!("CLAIM RR0: {:?} matches {:?}", RR_B1, RR_B0);
|
|||||||
| ^^^^^
|
| ^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
@ -21,7 +21,7 @@ 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!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ LL | RR_B1 => { println!("CLAIM RR0: {:?} matches {:?}", RR_B1, RR_B0);
|
|||||||
| ^^^^^
|
| ^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
@ -52,7 +52,7 @@ 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!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/62411>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
= note: the traits must be derived, manual `impl`s are not sufficient
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
||||||
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
|
@ -5,7 +5,7 @@ LL | B(TEST) => println!("matched"),
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-63479-match-fnptr.rs:8:9
|
--> $DIR/issue-63479-match-fnptr.rs:8:9
|
||||||
|
|
|
|
||||||
@ -19,7 +19,7 @@ LL | TEST2 => println!("matched"),
|
|||||||
| ^^^^^
|
| ^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
|
|
||||||
warning: 2 warnings emitted
|
warning: 2 warnings emitted
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ LL | B(TEST) => println!("matched"),
|
|||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-63479-match-fnptr.rs:8:9
|
--> $DIR/issue-63479-match-fnptr.rs:8:9
|
||||||
|
|
|
|
||||||
@ -46,7 +46,7 @@ LL | TEST2 => println!("matched"),
|
|||||||
| ^^^^^
|
| ^^^^^
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= 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 #62411 <https://github.com/rust-lang/rust/issues/70861>
|
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-63479-match-fnptr.rs:8:9
|
--> $DIR/issue-63479-match-fnptr.rs:8:9
|
||||||
|
|
|
|
||||||
|
Loading…
Reference in New Issue
Block a user