You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/ui/consts/const_in_pattern/issue-34784-match-on-non-int-raw-ptr.stderr
+12-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
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.
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22
+
= note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/70861>
23
+
24
+
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.
Copy file name to clipboardexpand all lines: tests/ui/rfcs/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.stderr
+11-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
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.
2
-
--> $DIR/issue-63479-match-fnptr.rs:35:7
2
+
--> $DIR/issue-63479-match-fnptr.rs:36:7
3
3
|
4
4
LL | B(TEST) => println!("matched"),
5
5
| ^^^^
@@ -12,5 +12,14 @@ note: the lint level is defined here
12
12
LL | #![warn(pointer_structural_match)]
13
13
| ^^^^^^^^^^^^^^^^^^^^^^^^
14
14
15
-
warning: 1 warning emitted
15
+
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.
16
+
--> $DIR/issue-63479-match-fnptr.rs:42:5
17
+
|
18
+
LL | TEST2 => println!("matched"),
19
+
| ^^^^^
20
+
|
21
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22
+
= note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/70861>
0 commit comments