1
1
warning: will be parsed as a guarded string in Rust 2024
2
- --> $DIR/reserved-guarded-strings-migration.rs:42 :12
2
+ --> $DIR/reserved-guarded-strings-migration.rs:49 :12
3
3
|
4
- LL | demo2!(#"foo ");
5
- | ^^^^^^
4
+ LL | demo2!(#"");
5
+ | ^^^
6
6
|
7
7
= warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
8
8
= note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
@@ -13,11 +13,50 @@ LL | #![warn(rust_2024_guarded_string_incompatible_syntax)]
13
13
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
14
help: insert whitespace here to avoid this being parsed as guarded string in Rust 2024
15
15
|
16
+ LL | demo2!(# "");
17
+ | +
18
+
19
+ warning: will be parsed as a guarded string in Rust 2024
20
+ --> $DIR/reserved-guarded-strings-migration.rs:52:12
21
+ |
22
+ LL | demo3!(#""#);
23
+ | ^^^^
24
+ |
25
+ = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
26
+ = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
27
+ help: insert whitespace here to avoid this being parsed as guarded string in Rust 2024
28
+ |
29
+ LL | demo3!(# ""#);
30
+ | +
31
+
32
+ warning: will be parsed as a guarded string in Rust 2024
33
+ --> $DIR/reserved-guarded-strings-migration.rs:55:12
34
+ |
35
+ LL | demo5!(####"");
36
+ | ^^^^^^
37
+ |
38
+ = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
39
+ = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
40
+ help: insert whitespace here to avoid this being parsed as guarded string in Rust 2024
41
+ |
42
+ LL | demo5!(#### "");
43
+ | +
44
+
45
+ warning: will be parsed as a guarded string in Rust 2024
46
+ --> $DIR/reserved-guarded-strings-migration.rs:58:12
47
+ |
48
+ LL | demo2!(#"foo");
49
+ | ^^^^^^
50
+ |
51
+ = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
52
+ = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
53
+ help: insert whitespace here to avoid this being parsed as guarded string in Rust 2024
54
+ |
16
55
LL | demo2!(# "foo");
17
56
| +
18
57
19
58
warning: will be parsed as a guarded string in Rust 2024
20
- --> $DIR/reserved-guarded-strings-migration.rs:45 :12
59
+ --> $DIR/reserved-guarded-strings-migration.rs:61 :12
21
60
|
22
61
LL | demo4!(###"foo");
23
62
| ^^^^^^^^
@@ -30,7 +69,7 @@ LL | demo4!(### "foo");
30
69
| +
31
70
32
71
warning: will be parsed as a guarded string in Rust 2024
33
- --> $DIR/reserved-guarded-strings-migration.rs:48 :12
72
+ --> $DIR/reserved-guarded-strings-migration.rs:64 :12
34
73
|
35
74
LL | demo3!(#"foo"#);
36
75
| ^^^^^^^
@@ -43,7 +82,7 @@ LL | demo3!(# "foo"#);
43
82
| +
44
83
45
84
warning: will be parsed as a guarded string in Rust 2024
46
- --> $DIR/reserved-guarded-strings-migration.rs:51 :12
85
+ --> $DIR/reserved-guarded-strings-migration.rs:67 :12
47
86
|
48
87
LL | demo5!(###"foo"#);
49
88
| ^^^^^^^^^
@@ -56,7 +95,7 @@ LL | demo5!(### "foo"#);
56
95
| +
57
96
58
97
warning: will be parsed as a guarded string in Rust 2024
59
- --> $DIR/reserved-guarded-strings-migration.rs:54 :12
98
+ --> $DIR/reserved-guarded-strings-migration.rs:70 :12
60
99
|
61
100
LL | demo6!(###"foo"##);
62
101
| ^^^^^^^^^^
@@ -69,7 +108,7 @@ LL | demo6!(### "foo"##);
69
108
| +
70
109
71
110
warning: will be parsed as a guarded string in Rust 2024
72
- --> $DIR/reserved-guarded-strings-migration.rs:57 :12
111
+ --> $DIR/reserved-guarded-strings-migration.rs:73 :12
73
112
|
74
113
LL | demo7!(###"foo"###);
75
114
| ^^^^^^^^^^^
@@ -81,5 +120,5 @@ help: insert whitespace here to avoid this being parsed as guarded string in Rus
81
120
LL | demo7!(### "foo"###);
82
121
| +
83
122
84
- warning: 6 warnings emitted
123
+ warning: 9 warnings emitted
85
124
0 commit comments