|
1 | | -error: this function depends on never type fallback being `()` |
2 | | - --> $DIR/diverging-fallback-control-flow.rs:30:1 |
3 | | - | |
4 | | -LL | fn assignment() { |
5 | | - | ^^^^^^^^^^^^^^^ |
6 | | - | |
7 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! |
8 | | - = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html> |
9 | | - = help: specify the types explicitly |
10 | | -note: in edition 2024, the requirement `!: UnitDefault` will fail |
11 | | - --> $DIR/diverging-fallback-control-flow.rs:36:13 |
12 | | - | |
13 | | -LL | x = UnitDefault::default(); |
14 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
15 | | - = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default |
16 | | -help: use `()` annotations to avoid fallback changes |
17 | | - | |
18 | | -LL | let x: (); |
19 | | - | ++++ |
20 | | - |
21 | | -error: this function depends on never type fallback being `()` |
22 | | - --> $DIR/diverging-fallback-control-flow.rs:42:1 |
23 | | - | |
24 | | -LL | fn assignment_rev() { |
25 | | - | ^^^^^^^^^^^^^^^^^^^ |
26 | | - | |
27 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! |
28 | | - = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html> |
29 | | - = help: specify the types explicitly |
30 | | -note: in edition 2024, the requirement `!: UnitDefault` will fail |
31 | | - --> $DIR/diverging-fallback-control-flow.rs:50:13 |
32 | | - | |
33 | | -LL | x = UnitDefault::default(); |
34 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
35 | | -help: use `()` annotations to avoid fallback changes |
36 | | - | |
37 | | -LL | let x: (); |
38 | | - | ++++ |
39 | | - |
40 | | -error: aborting due to 2 previous errors |
41 | | - |
42 | 1 | Future incompatibility report: Future breakage diagnostic: |
43 | | -error: this function depends on never type fallback being `()` |
44 | | - --> $DIR/diverging-fallback-control-flow.rs:30:1 |
| 2 | +warning: this function depends on never type fallback being `()` |
| 3 | + --> $DIR/diverging-fallback-control-flow.rs:32:1 |
45 | 4 | | |
46 | 5 | LL | fn assignment() { |
47 | 6 | | ^^^^^^^^^^^^^^^ |
48 | 7 | | |
49 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! |
50 | | - = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html> |
51 | 8 | = help: specify the types explicitly |
52 | 9 | note: in edition 2024, the requirement `!: UnitDefault` will fail |
53 | 10 | --> $DIR/diverging-fallback-control-flow.rs:36:13 |
54 | 11 | | |
55 | 12 | LL | x = UnitDefault::default(); |
56 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^ |
57 | | - = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default |
58 | 14 | help: use `()` annotations to avoid fallback changes |
59 | 15 | | |
60 | 16 | LL | let x: (); |
61 | 17 | | ++++ |
62 | 18 |
|
63 | 19 | Future breakage diagnostic: |
64 | | -error: this function depends on never type fallback being `()` |
| 20 | +warning: this function depends on never type fallback being `()` |
65 | 21 | --> $DIR/diverging-fallback-control-flow.rs:42:1 |
66 | 22 | | |
67 | 23 | LL | fn assignment_rev() { |
68 | 24 | | ^^^^^^^^^^^^^^^^^^^ |
69 | 25 | | |
70 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! |
71 | | - = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html> |
72 | 26 | = help: specify the types explicitly |
73 | 27 | note: in edition 2024, the requirement `!: UnitDefault` will fail |
74 | | - --> $DIR/diverging-fallback-control-flow.rs:50:13 |
| 28 | + --> $DIR/diverging-fallback-control-flow.rs:48:13 |
75 | 29 | | |
76 | 30 | LL | x = UnitDefault::default(); |
77 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^ |
78 | | - = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default |
79 | 32 | help: use `()` annotations to avoid fallback changes |
80 | 33 | | |
81 | 34 | LL | let x: (); |
|
0 commit comments