fork/rust

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

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

master
6.4 KiB227 linesraw
1error: almost complete ascii range
2  --> $DIR/almost_complete_range.rs:18:17
3   |
4LL |         let _ = ('a') ..'z';
5   |                 ^^^^^^--^^^
6   |                       |
7   |                       help: use an inclusive range: `..=`
8   |
9   = note: `-D clippy::almost-complete-range` implied by `-D warnings`
10   = help: to override `-D warnings` add `#[allow(clippy::almost_complete_range)]`
11
12error: almost complete ascii range
13  --> $DIR/almost_complete_range.rs:19:17
14   |
15LL |         let _ = 'A' .. ('Z');
16   |                 ^^^^--^^^^^^
17   |                     |
18   |                     help: use an inclusive range: `..=`
19
20error: almost complete ascii range
21  --> $DIR/almost_complete_range.rs:20:17
22   |
23LL |         let _ = ((('0'))) .. ('9');
24   |                 ^^^^^^^^^^--^^^^^^
25   |                           |
26   |                           help: use an inclusive range: `..=`
27
28error: almost complete ascii range
29  --> $DIR/almost_complete_range.rs:27:13
30   |
31LL |     let _ = (b'a')..(b'z');
32   |             ^^^^^^--^^^^^^
33   |                   |
34   |                   help: use an inclusive range: `..=`
35
36error: almost complete ascii range
37  --> $DIR/almost_complete_range.rs:28:13
38   |
39LL |     let _ = b'A'..b'Z';
40   |             ^^^^--^^^^
41   |                 |
42   |                 help: use an inclusive range: `..=`
43
44error: almost complete ascii range
45  --> $DIR/almost_complete_range.rs:29:13
46   |
47LL |     let _ = b'0'..b'9';
48   |             ^^^^--^^^^
49   |                 |
50   |                 help: use an inclusive range: `..=`
51
52error: almost complete ascii range
53  --> $DIR/almost_complete_range.rs:35:13
54   |
55LL |     let _ = inline!('a')..'z';
56   |             ^^^^^^^^^^^^--^^^
57   |                         |
58   |                         help: use an inclusive range: `..=`
59
60error: almost complete ascii range
61  --> $DIR/almost_complete_range.rs:36:13
62   |
63LL |     let _ = inline!('A')..'Z';
64   |             ^^^^^^^^^^^^--^^^
65   |                         |
66   |                         help: use an inclusive range: `..=`
67
68error: almost complete ascii range
69  --> $DIR/almost_complete_range.rs:37:13
70   |
71LL |     let _ = inline!('0')..'9';
72   |             ^^^^^^^^^^^^--^^^
73   |                         |
74   |                         help: use an inclusive range: `..=`
75
76error: almost complete ascii range
77  --> $DIR/almost_complete_range.rs:40:9
78   |
79LL |         b'a'..b'z' if true => 1,
80   |         ^^^^--^^^^
81   |             |
82   |             help: use an inclusive range: `..=`
83
84error: almost complete ascii range
85  --> $DIR/almost_complete_range.rs:41:9
86   |
87LL |         b'A'..b'Z' if true => 2,
88   |         ^^^^--^^^^
89   |             |
90   |             help: use an inclusive range: `..=`
91
92error: almost complete ascii range
93  --> $DIR/almost_complete_range.rs:42:9
94   |
95LL |         b'0'..b'9' if true => 3,
96   |         ^^^^--^^^^
97   |             |
98   |             help: use an inclusive range: `..=`
99
100error: almost complete ascii range
101  --> $DIR/almost_complete_range.rs:50:9
102   |
103LL |         'a'..'z' if true => 1,
104   |         ^^^--^^^
105   |            |
106   |            help: use an inclusive range: `..=`
107
108error: almost complete ascii range
109  --> $DIR/almost_complete_range.rs:51:9
110   |
111LL |         'A'..'Z' if true => 2,
112   |         ^^^--^^^
113   |            |
114   |            help: use an inclusive range: `..=`
115
116error: almost complete ascii range
117  --> $DIR/almost_complete_range.rs:52:9
118   |
119LL |         '0'..'9' if true => 3,
120   |         ^^^--^^^
121   |            |
122   |            help: use an inclusive range: `..=`
123
124error: almost complete ascii range
125  --> $DIR/almost_complete_range.rs:65:17
126   |
127LL |         let _ = 'a'..'z';
128   |                 ^^^--^^^
129   |                    |
130   |                    help: use an inclusive range: `..=`
131   |
132   = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
133
134error: almost complete ascii range
135  --> $DIR/almost_complete_range.rs:66:17
136   |
137LL |         let _ = 'A'..'Z';
138   |                 ^^^--^^^
139   |                    |
140   |                    help: use an inclusive range: `..=`
141   |
142   = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
143
144error: almost complete ascii range
145  --> $DIR/almost_complete_range.rs:67:17
146   |
147LL |         let _ = '0'..'9';
148   |                 ^^^--^^^
149   |                    |
150   |                    help: use an inclusive range: `..=`
151   |
152   = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
153
154error: almost complete ascii range
155  --> $DIR/almost_complete_range.rs:74:9
156   |
157LL |         'a'..'z' => 1,
158   |         ^^^--^^^
159   |            |
160   |            help: use an inclusive range: `...`
161
162error: almost complete ascii range
163  --> $DIR/almost_complete_range.rs:75:9
164   |
165LL |         'A'..'Z' => 2,
166   |         ^^^--^^^
167   |            |
168   |            help: use an inclusive range: `...`
169
170error: almost complete ascii range
171  --> $DIR/almost_complete_range.rs:76:9
172   |
173LL |         '0'..'9' => 3,
174   |         ^^^--^^^
175   |            |
176   |            help: use an inclusive range: `...`
177
178error: almost complete ascii range
179  --> $DIR/almost_complete_range.rs:83:13
180   |
181LL |     let _ = 'a'..'z';
182   |             ^^^--^^^
183   |                |
184   |                help: use an inclusive range: `..=`
185
186error: almost complete ascii range
187  --> $DIR/almost_complete_range.rs:84:13
188   |
189LL |     let _ = 'A'..'Z';
190   |             ^^^--^^^
191   |                |
192   |                help: use an inclusive range: `..=`
193
194error: almost complete ascii range
195  --> $DIR/almost_complete_range.rs:85:13
196   |
197LL |     let _ = '0'..'9';
198   |             ^^^--^^^
199   |                |
200   |                help: use an inclusive range: `..=`
201
202error: almost complete ascii range
203  --> $DIR/almost_complete_range.rs:87:9
204   |
205LL |         'a'..'z' => 1,
206   |         ^^^--^^^
207   |            |
208   |            help: use an inclusive range: `..=`
209
210error: almost complete ascii range
211  --> $DIR/almost_complete_range.rs:88:9
212   |
213LL |         'A'..'Z' => 1,
214   |         ^^^--^^^
215   |            |
216   |            help: use an inclusive range: `..=`
217
218error: almost complete ascii range
219  --> $DIR/almost_complete_range.rs:89:9
220   |
221LL |         '0'..'9' => 3,
222   |         ^^^--^^^
223   |            |
224   |            help: use an inclusive range: `..=`
225
226error: aborting due to 27 previous errors
227