@@ -28,7 +28,7 @@ error: identifiers cannot contain emoji: `🙃`
2828LL | demo3!(🙃#"");
2929 | ^^
3030
31- warning: will be parsed as a guarded string in Rust 2024
31+ warning: reserved token in Rust 2024
3232 --> $DIR/reserved-guarded-strings-lexing.rs:28:12
3333 |
3434LL | demo3!(## "foo");
@@ -41,98 +41,98 @@ note: the lint level is defined here
4141 |
4242LL | #![warn(rust_2024_guarded_string_incompatible_syntax)]
4343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
44+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
4545 |
4646LL | demo3!(# # "foo");
4747 | +
4848
49- warning: will be parsed as a guarded string in Rust 2024
49+ warning: reserved token in Rust 2024
5050 --> $DIR/reserved-guarded-strings-lexing.rs:31:12
5151 |
5252LL | demo4!(### "foo");
5353 | ^^
5454 |
5555 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
5656 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
57- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
57+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
5858 |
5959LL | demo4!(# ## "foo");
6060 | +
6161
62- warning: will be parsed as a guarded string in Rust 2024
62+ warning: reserved token in Rust 2024
6363 --> $DIR/reserved-guarded-strings-lexing.rs:31:13
6464 |
6565LL | demo4!(### "foo");
6666 | ^^
6767 |
6868 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
6969 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
70- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
70+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
7171 |
7272LL | demo4!(## # "foo");
7373 | +
7474
75- warning: will be parsed as a guarded string in Rust 2024
75+ warning: reserved token in Rust 2024
7676 --> $DIR/reserved-guarded-strings-lexing.rs:36:12
7777 |
7878LL | demo4!(## "foo"#);
7979 | ^^
8080 |
8181 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
8282 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
83- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
83+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
8484 |
8585LL | demo4!(# # "foo"#);
8686 | +
8787
88- warning: will be parsed as a guarded string in Rust 2024
88+ warning: reserved token in Rust 2024
8989 --> $DIR/reserved-guarded-strings-lexing.rs:39:12
9090 |
9191LL | demo7!(### "foo"###);
9292 | ^^
9393 |
9494 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
9595 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
96- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
96+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
9797 |
9898LL | demo7!(# ## "foo"###);
9999 | +
100100
101- warning: will be parsed as a guarded string in Rust 2024
101+ warning: reserved token in Rust 2024
102102 --> $DIR/reserved-guarded-strings-lexing.rs:39:13
103103 |
104104LL | demo7!(### "foo"###);
105105 | ^^
106106 |
107107 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
108108 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
109- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
109+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
110110 |
111111LL | demo7!(## # "foo"###);
112112 | +
113113
114- warning: will be parsed as a guarded string in Rust 2024
114+ warning: reserved token in Rust 2024
115115 --> $DIR/reserved-guarded-strings-lexing.rs:39:21
116116 |
117117LL | demo7!(### "foo"###);
118118 | ^^
119119 |
120120 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
121121 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
122- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
122+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
123123 |
124124LL | demo7!(### "foo"# ##);
125125 | +
126126
127- warning: will be parsed as a guarded string in Rust 2024
127+ warning: reserved token in Rust 2024
128128 --> $DIR/reserved-guarded-strings-lexing.rs:39:22
129129 |
130130LL | demo7!(### "foo"###);
131131 | ^^
132132 |
133133 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
134134 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
135- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
135+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
136136 |
137137LL | demo7!(### "foo"## #);
138138 | +
@@ -189,54 +189,54 @@ help: insert whitespace here to avoid this being parsed as a guarded string in R
189189LL | demo5!(# "foo"###);
190190 | +
191191
192- warning: will be parsed as a guarded string in Rust 2024
192+ warning: reserved token in Rust 2024
193193 --> $DIR/reserved-guarded-strings-lexing.rs:56:18
194194 |
195195LL | demo5!(#"foo"###);
196196 | ^^
197197 |
198198 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
199199 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
200- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
200+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
201201 |
202202LL | demo5!(#"foo"# ##);
203203 | +
204204
205- warning: will be parsed as a guarded string in Rust 2024
205+ warning: reserved token in Rust 2024
206206 --> $DIR/reserved-guarded-strings-lexing.rs:56:19
207207 |
208208LL | demo5!(#"foo"###);
209209 | ^^
210210 |
211211 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
212212 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
213- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
213+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
214214 |
215215LL | demo5!(#"foo"## #);
216216 | +
217217
218- warning: will be parsed as a guarded string in Rust 2024
218+ warning: reserved token in Rust 2024
219219 --> $DIR/reserved-guarded-strings-lexing.rs:63:17
220220 |
221221LL | demo4!("foo"###);
222222 | ^^
223223 |
224224 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
225225 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
226- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
226+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
227227 |
228228LL | demo4!("foo"# ##);
229229 | +
230230
231- warning: will be parsed as a guarded string in Rust 2024
231+ warning: reserved token in Rust 2024
232232 --> $DIR/reserved-guarded-strings-lexing.rs:63:18
233233 |
234234LL | demo4!("foo"###);
235235 | ^^
236236 |
237237 = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024!
238238 = note: for more information, see issue #123735 <https://github.com/rust-lang/rust/issues/123735>
239- help: insert whitespace here to avoid this being parsed as a guarded string in Rust 2024
239+ help: insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024
240240 |
241241LL | demo4!("foo"## #);
242242 | +
0 commit comments