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/parser/unicode-control-codepoints.stderr
+20-4
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ LL | // if access_level != "us�e�r" { // Check if admin
97
97
= help: if their presence wasn't intentional, you can remove them
98
98
99
99
error: unicode codepoint changing visible direction of text present in comment
100
-
--> $DIR/unicode-control-codepoints.rs:37:1
100
+
--> $DIR/unicode-control-codepoints.rs:40:1
101
101
|
102
102
LL | //"/*� } �if isAdmin� � begin admins only */"
103
103
| ^^^^^-^^^-^^^^^^^^^^-^-^^^^^^^^^^^^^^^^^^^^^^
@@ -198,8 +198,24 @@ help: if you want to keep them but make them visible in your source code, you ca
198
198
LL | let _ = cr#"\u{202e}"#;
199
199
| ~~~~~~~~
200
200
201
+
error: unicode codepoint changing visible direction of text present in format string
202
+
--> $DIR/unicode-control-codepoints.rs:36:14
203
+
|
204
+
LL | println!("{{�}}");
205
+
| ^^^-^^^
206
+
| | |
207
+
| | '\u{202e}'
208
+
| this format string contains an invisible unicode text flow control codepoint
209
+
|
210
+
= note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
211
+
= help: if their presence wasn't intentional, you can remove them
212
+
help: if you want to keep them but make them visible in your source code, you can escape them
213
+
|
214
+
LL | println!("{{\u{202e}}}");
215
+
| ~~~~~~~~
216
+
201
217
error: unicode codepoint changing visible direction of text present in doc comment
202
-
--> $DIR/unicode-control-codepoints.rs:40:1
218
+
--> $DIR/unicode-control-codepoints.rs:43:1
203
219
|
204
220
LL | /** '�'); */fn foo() {}
205
221
| ^^^^^^^^^^^^^ this doc comment contains an invisible unicode text flow control codepoint
@@ -209,7 +225,7 @@ LL | /** '�'); */fn foo() {}
209
225
= note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
210
226
211
227
error: unicode codepoint changing visible direction of text present in doc comment
212
-
--> $DIR/unicode-control-codepoints.rs:43:1
228
+
--> $DIR/unicode-control-codepoints.rs:46:1
213
229
|
214
230
LL | / /**
215
231
LL | | *
@@ -220,5 +236,5 @@ LL | | * '�'); */fn bar() {}
220
236
= note: if their presence wasn't intentional, you can remove them
221
237
= note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
0 commit comments