]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/unicode-control-codepoints.stderr
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
[rust.git] / src / test / ui / parser / unicode-control-codepoints.stderr
1 error: unicode escape in byte string
2   --> $DIR/unicode-control-codepoints.rs:6:26
3    |
4 LL |     println!("{:?}", b"us\u{202B}e\u{202A}r");
5    |                          ^^^^^^^^ unicode escape in byte string
6    |
7    = help: unicode escape sequences cannot be used as a byte or in a byte string
8
9 error: unicode escape in byte string
10   --> $DIR/unicode-control-codepoints.rs:6:35
11    |
12 LL |     println!("{:?}", b"us\u{202B}e\u{202A}r");
13    |                                   ^^^^^^^^ unicode escape in byte string
14    |
15    = help: unicode escape sequences cannot be used as a byte or in a byte string
16
17 error: non-ASCII character in byte constant
18   --> $DIR/unicode-control-codepoints.rs:16:26
19    |
20 LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
21    |                          ^ byte constant must be ASCII but is '\u{202e}'
22    |
23 help: if you meant to use the UTF-8 encoding of '\u{202e}', use \xHH escapes
24    |
25 LL |     println!("{:?}", b"/*\xE2\x80\xAE } if isAdmin  begin admins only ");
26    |                          ~~~~~~~~~~~~
27
28 error: non-ASCII character in byte constant
29   --> $DIR/unicode-control-codepoints.rs:16:30
30    |
31 LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
32    |                             ^ byte constant must be ASCII but is '\u{2066}'
33    |
34 help: if you meant to use the UTF-8 encoding of '\u{2066}', use \xHH escapes
35    |
36 LL |     println!("{:?}", b"/* } \xE2\x81\xA6if isAdmin  begin admins only ");
37    |                             ~~~~~~~~~~~~
38
39 error: non-ASCII character in byte constant
40   --> $DIR/unicode-control-codepoints.rs:16:41
41    |
42 LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
43    |                                       ^ byte constant must be ASCII but is '\u{2069}'
44    |
45 help: if you meant to use the UTF-8 encoding of '\u{2069}', use \xHH escapes
46    |
47 LL |     println!("{:?}", b"/* } if isAdmin\xE2\x81\xA9  begin admins only ");
48    |                                       ~~~~~~~~~~~~
49
50 error: non-ASCII character in byte constant
51   --> $DIR/unicode-control-codepoints.rs:16:43
52    |
53 LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
54    |                                        ^ byte constant must be ASCII but is '\u{2066}'
55    |
56 help: if you meant to use the UTF-8 encoding of '\u{2066}', use \xHH escapes
57    |
58 LL |     println!("{:?}", b"/* } if isAdmin \xE2\x81\xA6 begin admins only ");
59    |                                        ~~~~~~~~~~~~
60
61 error: raw byte string must be ASCII
62   --> $DIR/unicode-control-codepoints.rs:21:29
63    |
64 LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
65    |                             ^ must be ASCII but is '\u{202e}'
66
67 error: raw byte string must be ASCII
68   --> $DIR/unicode-control-codepoints.rs:21:33
69    |
70 LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
71    |                                ^ must be ASCII but is '\u{2066}'
72
73 error: raw byte string must be ASCII
74   --> $DIR/unicode-control-codepoints.rs:21:44
75    |
76 LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
77    |                                          ^ must be ASCII but is '\u{2069}'
78
79 error: raw byte string must be ASCII
80   --> $DIR/unicode-control-codepoints.rs:21:46
81    |
82 LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
83    |                                           ^ must be ASCII but is '\u{2066}'
84
85 error: unicode codepoint changing visible direction of text present in comment
86   --> $DIR/unicode-control-codepoints.rs:2:5
87    |
88 LL |     // if access_level != "user" { // Check if admin
89    |     ^^^^^^^^^^^^^^^^^^^^^^^^^--^^^^^^^^^^^^^^^^^^^^^
90    |     |                        ||
91    |     |                        |'\u{202a}'
92    |     |                        '\u{202b}'
93    |     this comment contains invisible unicode text flow control codepoints
94    |
95    = note: `#[deny(text_direction_codepoint_in_comment)]` on by default
96    = 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
97    = help: if their presence wasn't intentional, you can remove them
98
99 error: unicode codepoint changing visible direction of text present in comment
100   --> $DIR/unicode-control-codepoints.rs:30:1
101    |
102 LL | //"/* } if isAdmin  begin admins only */"
103    | ^^^^^-^^-^^^^^^^^^--^^^^^^^^^^^^^^^^^^^^^
104    | |    |  |         ||
105    | |    |  |         |'\u{2066}'
106    | |    |  |         '\u{2069}'
107    | |    |  '\u{2066}'
108    | |    '\u{202e}'
109    | this comment contains invisible unicode text flow control codepoints
110    |
111    = 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
112    = help: if their presence wasn't intentional, you can remove them
113
114 error: unicode codepoint changing visible direction of text present in literal
115   --> $DIR/unicode-control-codepoints.rs:11:22
116    |
117 LL |     println!("{:?}", "/* } if isAdmin  begin admins only ");
118    |                      ^^^-^^-^^^^^^^^^--^^^^^^^^^^^^^^^^^^^
119    |                      |  |  |         ||
120    |                      |  |  |         |'\u{2066}'
121    |                      |  |  |         '\u{2069}'
122    |                      |  |  '\u{2066}'
123    |                      |  '\u{202e}'
124    |                      this literal contains invisible unicode text flow control codepoints
125    |
126    = note: `#[deny(text_direction_codepoint_in_literal)]` on by default
127    = 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
128    = help: if their presence wasn't intentional, you can remove them
129 help: if you want to keep them but make them visible in your source code, you can escape them
130    |
131 LL |     println!("{:?}", "/*\u{202e} } \u{2066}if isAdmin\u{2069} \u{2066} begin admins only ");
132    |                         ~~~~~~~~   ~~~~~~~~          ~~~~~~~~ ~~~~~~~~
133
134 error: unicode codepoint changing visible direction of text present in literal
135   --> $DIR/unicode-control-codepoints.rs:14:22
136    |
137 LL |     println!("{:?}", r##"/* } if isAdmin  begin admins only "##);
138    |                      ^^^^^^-^^-^^^^^^^^^--^^^^^^^^^^^^^^^^^^^^^
139    |                      |     |  |         ||
140    |                      |     |  |         |'\u{2066}'
141    |                      |     |  |         '\u{2069}'
142    |                      |     |  '\u{2066}'
143    |                      |     '\u{202e}'
144    |                      this literal contains invisible unicode text flow control codepoints
145    |
146    = 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
147    = help: if their presence wasn't intentional, you can remove them
148 help: if you want to keep them but make them visible in your source code, you can escape them
149    |
150 LL |     println!("{:?}", r##"/*\u{202e} } \u{2066}if isAdmin\u{2069} \u{2066} begin admins only "##);
151    |                            ~~~~~~~~   ~~~~~~~~          ~~~~~~~~ ~~~~~~~~
152
153 error: unicode codepoint changing visible direction of text present in literal
154   --> $DIR/unicode-control-codepoints.rs:26:22
155    |
156 LL |     println!("{:?}", '');
157    |                      ^-
158    |                      ||
159    |                      |'\u{202e}'
160    |                      this literal contains an invisible unicode text flow control codepoint
161    |
162    = 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
163    = help: if their presence wasn't intentional, you can remove them
164 help: if you want to keep them but make them visible in your source code, you can escape them
165    |
166 LL |     println!("{:?}", '\u{202e}');
167    |                       ~~~~~~~~
168
169 error: unicode codepoint changing visible direction of text present in doc comment
170   --> $DIR/unicode-control-codepoints.rs:33:1
171    |
172 LL | /**  ''); */fn foo() {}
173    | ^^^^^^^^^^^^ this doc comment contains an invisible unicode text flow control codepoint
174    |
175    = 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
176    = note: if their presence wasn't intentional, you can remove them
177    = note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
178
179 error: unicode codepoint changing visible direction of text present in doc comment
180   --> $DIR/unicode-control-codepoints.rs:36:1
181    |
182 LL | / /**
183 LL | |  *
184 LL | |  *  ''); */fn bar() {}
185    | |___________^ this doc comment contains an invisible unicode text flow control codepoint
186    |
187    = 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
188    = note: if their presence wasn't intentional, you can remove them
189    = note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
190
191 error: aborting due to 17 previous errors
192