1
- warning: to use a constant of type `&str` in a pattern, the type must implement `PartialEq`
2
- --> $DIR/minicore.rs:332:9
3
- |
4
- LL | "true" => Ok(true),
5
- | ^^^^^^
6
- |
7
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8
- = note: for more information, see issue #116122 <https://github.com/rust-lang/rust/issues/116122>
9
- = note: `#[warn(const_patterns_without_partial_eq)]` on by default
10
-
11
- warning: to use a constant of type `&str` in a pattern, the type must implement `PartialEq`
12
- --> $DIR/minicore.rs:333:9
13
- |
14
- LL | "false" => Ok(false),
15
- | ^^^^^^^
16
- |
17
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18
- = note: for more information, see issue #116122 <https://github.com/rust-lang/rust/issues/116122>
19
-
20
1
error[E0493]: destructor of `Self` cannot be evaluated at compile-time
21
- --> $DIR/minicore.rs:494 :9
2
+ --> $DIR/minicore.rs:503 :9
22
3
|
23
4
LL | *self = source.clone()
24
5
| ^^^^^
@@ -27,35 +8,13 @@ LL | *self = source.clone()
27
8
| value is dropped here
28
9
29
10
error[E0493]: destructor of `T` cannot be evaluated at compile-time
30
- --> $DIR/minicore.rs:504 :35
11
+ --> $DIR/minicore.rs:513 :35
31
12
|
32
13
LL | const fn drop<T: ~const Destruct>(_: T) {}
33
14
| ^ - value is dropped here
34
15
| |
35
16
| the destructor for this type cannot be evaluated in constant functions
36
17
37
- error: aborting due to 2 previous errors; 2 warnings emitted
18
+ error: aborting due to 2 previous errors
38
19
39
20
For more information about this error, try `rustc --explain E0493`.
40
- Future incompatibility report: Future breakage diagnostic:
41
- warning: to use a constant of type `&str` in a pattern, the type must implement `PartialEq`
42
- --> $DIR/minicore.rs:332:9
43
- |
44
- LL | "true" => Ok(true),
45
- | ^^^^^^
46
- |
47
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
48
- = note: for more information, see issue #116122 <https://github.com/rust-lang/rust/issues/116122>
49
- = note: `#[warn(const_patterns_without_partial_eq)]` on by default
50
-
51
- Future breakage diagnostic:
52
- warning: to use a constant of type `&str` in a pattern, the type must implement `PartialEq`
53
- --> $DIR/minicore.rs:333:9
54
- |
55
- LL | "false" => Ok(false),
56
- | ^^^^^^^
57
- |
58
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
59
- = note: for more information, see issue #116122 <https://github.com/rust-lang/rust/issues/116122>
60
- = note: `#[warn(const_patterns_without_partial_eq)]` on by default
61
-
0 commit comments