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
error: unicode codepoint changing visible direction of text present in literal
154
-
--> $DIR/unicode-control-codepoints.rs:26:22
154
+
--> $DIR/unicode-control-codepoints.rs:28:22
155
155
|
156
156
LL | println!("{:?}", '�');
157
157
| ^-^
@@ -166,8 +166,40 @@ help: if you want to keep them but make them visible in your source code, you ca
166
166
LL | println!("{:?}", '\u{202e}');
167
167
| ~~~~~~~~
168
168
169
+
error: unicode codepoint changing visible direction of text present in literal
170
+
--> $DIR/unicode-control-codepoints.rs:31:13
171
+
|
172
+
LL | let _ = c"�";
173
+
| ^^-^
174
+
| | |
175
+
| | '\u{202e}'
176
+
| this literal contains an invisible unicode text flow control codepoint
177
+
|
178
+
= 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
179
+
= help: if their presence wasn't intentional, you can remove them
180
+
help: if you want to keep them but make them visible in your source code, you can escape them
181
+
|
182
+
LL | let _ = c"\u{202e}";
183
+
| ~~~~~~~~
184
+
185
+
error: unicode codepoint changing visible direction of text present in literal
186
+
--> $DIR/unicode-control-codepoints.rs:33:13
187
+
|
188
+
LL | let _ = cr#"�"#;
189
+
| ^^^^-^^
190
+
| | |
191
+
| | '\u{202e}'
192
+
| this literal contains an invisible unicode text flow control codepoint
193
+
|
194
+
= 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
195
+
= help: if their presence wasn't intentional, you can remove them
196
+
help: if you want to keep them but make them visible in your source code, you can escape them
197
+
|
198
+
LL | let _ = cr#"\u{202e}"#;
199
+
| ~~~~~~~~
200
+
169
201
error: unicode codepoint changing visible direction of text present in doc comment
170
-
--> $DIR/unicode-control-codepoints.rs:33:1
202
+
--> $DIR/unicode-control-codepoints.rs:40:1
171
203
|
172
204
LL | /** '�'); */fn foo() {}
173
205
| ^^^^^^^^^^^^^ this doc comment contains an invisible unicode text flow control codepoint
@@ -177,7 +209,7 @@ LL | /** '�'); */fn foo() {}
177
209
= note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
178
210
179
211
error: unicode codepoint changing visible direction of text present in doc comment
180
-
--> $DIR/unicode-control-codepoints.rs:36:1
212
+
--> $DIR/unicode-control-codepoints.rs:43:1
181
213
|
182
214
LL | / /**
183
215
LL | | *
@@ -188,5 +220,5 @@ LL | | * '�'); */fn bar() {}
188
220
= note: if their presence wasn't intentional, you can remove them
189
221
= note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
0 commit comments