2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:10:11
|
2020-04-24 00:28:18 +03:00
|
|
|
|
|
2020-04-25 00:52:02 +03:00
|
|
|
LL | match arr[idx] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-24 00:28:18 +03:00
|
|
|
|
|
2020-04-25 11:33:40 +03:00
|
|
|
= note: `-D clippy::match-on-vec-items` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::match_on_vec_items)]`
|
2020-04-24 00:28:18 +03:00
|
|
|
|
2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:19:11
|
2020-04-24 00:28:18 +03:00
|
|
|
|
|
2020-04-25 00:52:02 +03:00
|
|
|
LL | match arr[range] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-25 00:52:02 +03:00
|
|
|
|
2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:33:11
|
2020-04-25 00:52:02 +03:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-25 00:52:02 +03:00
|
|
|
|
2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:41:11
|
2020-04-25 00:52:02 +03:00
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-25 00:52:02 +03:00
|
|
|
|
2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:55:11
|
2020-04-25 00:52:02 +03:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-25 00:52:02 +03:00
|
|
|
|
2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:63:11
|
2020-04-25 00:52:02 +03:00
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-25 00:52:02 +03:00
|
|
|
|
2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:77:11
|
2020-04-25 00:52:02 +03:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-25 00:52:02 +03:00
|
|
|
|
2020-04-26 17:57:19 +03:00
|
|
|
error: indexing into a vector may panic
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/match_on_vec_items.rs:85:11
|
2020-04-24 00:28:18 +03:00
|
|
|
|
|
2020-04-25 00:52:02 +03:00
|
|
|
LL | match arr[range] {
|
2023-07-17 10:19:29 +02:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-24 00:28:18 +03:00
|
|
|
|
2020-04-25 00:52:02 +03:00
|
|
|
error: aborting due to 8 previous errors
|
2020-04-24 00:28:18 +03:00
|
|
|
|