2022-12-17 14:12:54 +01:00
|
|
|
error: almost complete ascii range
|
2024-04-28 00:39:32 -04:00
|
|
|
--> tests/ui/almost_complete_range.rs:17:17
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = ('a') ..'z';
|
|
|
|
|
| ^^^^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
|
= note: `-D clippy::almost-complete-range` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::almost_complete_range)]`
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:19:17
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = 'A' .. ('Z');
|
|
|
|
|
| ^^^^--^^^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:21:17
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = ((('0'))) .. ('9');
|
|
|
|
|
| ^^^^^^^^^^--^^^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:29:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = (b'a')..(b'z');
|
|
|
|
|
| ^^^^^^--^^^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:31:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = b'A'..b'Z';
|
|
|
|
|
| ^^^^--^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:33:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = b'0'..b'9';
|
|
|
|
|
| ^^^^--^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:40:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
2023-03-24 14:04:35 +01:00
|
|
|
LL | let _ = inline!('a')..'z';
|
|
|
|
|
| ^^^^^^^^^^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:42:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
2023-03-24 14:04:35 +01:00
|
|
|
LL | let _ = inline!('A')..'Z';
|
|
|
|
|
| ^^^^^^^^^^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:44:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
2023-03-24 14:04:35 +01:00
|
|
|
LL | let _ = inline!('0')..'9';
|
|
|
|
|
| ^^^^^^^^^^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:48:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | b'a'..b'z' if true => 1,
|
|
|
|
|
| ^^^^--^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:50:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | b'A'..b'Z' if true => 2,
|
|
|
|
|
| ^^^^--^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:52:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | b'0'..b'9' if true => 3,
|
|
|
|
|
| ^^^^--^^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:61:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | 'a'..'z' if true => 1,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:63:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | 'A'..'Z' if true => 2,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:65:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | '0'..'9' if true => 3,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:79:17
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = 'a'..'z';
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
2023-03-24 14:04:35 +01:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:81:17
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = 'A'..'Z';
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
2023-03-24 14:04:35 +01:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:83:17
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = '0'..'9';
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
2023-03-24 14:04:35 +01:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:91:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | 'a'..'z' => 1,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `...`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:93:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | 'A'..'Z' => 2,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `...`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:95:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | '0'..'9' => 3,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `...`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:103:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = 'a'..'z';
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:105:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = 'A'..'Z';
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:107:13
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = '0'..'9';
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:110:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | 'a'..'z' => 1,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:112:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | 'A'..'Z' => 1,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: almost complete ascii range
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/almost_complete_range.rs:114:9
|
2022-12-17 14:12:54 +01:00
|
|
|
|
|
|
|
|
|
LL | '0'..'9' => 3,
|
|
|
|
|
| ^^^--^^^
|
|
|
|
|
| |
|
|
|
|
|
| help: use an inclusive range: `..=`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 27 previous errors
|
|
|
|
|
|