fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
9.2 KiB192 linesraw
1error: unicode escape in byte string
2  --> $DIR/unicode-control-codepoints.rs:6:26
3   |
4LL |     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
9error: unicode escape in byte string
10  --> $DIR/unicode-control-codepoints.rs:6:35
11   |
12LL |     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
17error: non-ASCII character in byte string literal
18  --> $DIR/unicode-control-codepoints.rs:16:26
19   |
20LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
21   |                          ^ must be ASCII but is '\u{202e}'
22   |
23help: if you meant to use the UTF-8 encoding of '\u{202e}', use \xHH escapes
24   |
25LL |     println!("{:?}", b"/*\xE2\x80\xAE } if isAdmin  begin admins only ");
26   |                          ~~~~~~~~~~~~
27
28error: non-ASCII character in byte string literal
29  --> $DIR/unicode-control-codepoints.rs:16:30
30   |
31LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
32   |                             ^ must be ASCII but is '\u{2066}'
33   |
34help: if you meant to use the UTF-8 encoding of '\u{2066}', use \xHH escapes
35   |
36LL |     println!("{:?}", b"/* } \xE2\x81\xA6if isAdmin  begin admins only ");
37   |                             ~~~~~~~~~~~~
38
39error: non-ASCII character in byte string literal
40  --> $DIR/unicode-control-codepoints.rs:16:41
41   |
42LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
43   |                                       ^ must be ASCII but is '\u{2069}'
44   |
45help: if you meant to use the UTF-8 encoding of '\u{2069}', use \xHH escapes
46   |
47LL |     println!("{:?}", b"/* } if isAdmin\xE2\x81\xA9  begin admins only ");
48   |                                       ~~~~~~~~~~~~
49
50error: non-ASCII character in byte string literal
51  --> $DIR/unicode-control-codepoints.rs:16:43
52   |
53LL |     println!("{:?}", b"/* } if isAdmin  begin admins only ");
54   |                                        ^ must be ASCII but is '\u{2066}'
55   |
56help: if you meant to use the UTF-8 encoding of '\u{2066}', use \xHH escapes
57   |
58LL |     println!("{:?}", b"/* } if isAdmin \xE2\x81\xA6 begin admins only ");
59   |                                        ~~~~~~~~~~~~
60
61error: non-ASCII character in raw byte string literal
62  --> $DIR/unicode-control-codepoints.rs:21:29
63   |
64LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
65   |                             ^ must be ASCII but is '\u{202e}'
66
67error: non-ASCII character in raw byte string literal
68  --> $DIR/unicode-control-codepoints.rs:21:33
69   |
70LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
71   |                                ^ must be ASCII but is '\u{2066}'
72
73error: non-ASCII character in raw byte string literal
74  --> $DIR/unicode-control-codepoints.rs:21:44
75   |
76LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
77   |                                          ^ must be ASCII but is '\u{2069}'
78
79error: non-ASCII character in raw byte string literal
80  --> $DIR/unicode-control-codepoints.rs:21:46
81   |
82LL |     println!("{:?}", br##"/* } if isAdmin  begin admins only "##);
83   |                                           ^ must be ASCII but is '\u{2066}'
84
85error: unicode codepoint changing visible direction of text present in comment
86  --> $DIR/unicode-control-codepoints.rs:2:5
87   |
88LL |     // 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: 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
96   = note: `#[deny(text_direction_codepoint_in_comment)]` on by default
97   = help: if their presence wasn't intentional, you can remove them
98
99error: unicode codepoint changing visible direction of text present in comment
100  --> $DIR/unicode-control-codepoints.rs:30:1
101   |
102LL | //"/* } 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
114error: unicode codepoint changing visible direction of text present in literal
115  --> $DIR/unicode-control-codepoints.rs:11:22
116   |
117LL |     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: 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
127   = note: `#[deny(text_direction_codepoint_in_literal)]` on by default
128   = help: if their presence wasn't intentional, you can remove them
129help: if you want to keep them but make them visible in your source code, you can escape them
130   |
131LL |     println!("{:?}", "/*\u{202e} } \u{2066}if isAdmin\u{2069} \u{2066} begin admins only ");
132   |                         ~~~~~~~~   ~~~~~~~~          ~~~~~~~~ ~~~~~~~~
133
134error: unicode codepoint changing visible direction of text present in literal
135  --> $DIR/unicode-control-codepoints.rs:14:22
136   |
137LL |     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
148help: if you want to keep them but make them visible in your source code, you can escape them
149   |
150LL |     println!("{:?}", r##"/*\u{202e} } \u{2066}if isAdmin\u{2069} \u{2066} begin admins only "##);
151   |                            ~~~~~~~~   ~~~~~~~~          ~~~~~~~~ ~~~~~~~~
152
153error: unicode codepoint changing visible direction of text present in literal
154  --> $DIR/unicode-control-codepoints.rs:26:22
155   |
156LL |     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
164help: if you want to keep them but make them visible in your source code, you can escape them
165   |
166LL |     println!("{:?}", '\u{202e}');
167   |                       ~~~~~~~~
168
169error: unicode codepoint changing visible direction of text present in doc comment
170  --> $DIR/unicode-control-codepoints.rs:33:1
171   |
172LL | /**  ''); */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
179error: unicode codepoint changing visible direction of text present in doc comment
180  --> $DIR/unicode-control-codepoints.rs:36:1
181   |
182LL | / /**
183LL | |  *
184LL | |  *  ''); */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
191error: aborting due to 17 previous errors
192