2023-04-04 06:16:37 +00:00
|
|
|
error: you seem to be trying to pop elements from a `Vec` in a loop
|
2023-04-19 20:26:50 +00:00
|
|
|
--> $DIR/manual_while_let_some.rs:23:9
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
|
|
|
LL | let number = numbers.pop().unwrap();
|
2023-04-17 22:14:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
2023-04-19 20:26:50 +00:00
|
|
|
= note: `-D clippy::manual-while-let-some` implied by `-D warnings`
|
2023-04-17 22:14:56 +00:00
|
|
|
help: consider using a `while..let` loop
|
|
|
|
|
|
|
|
|
LL ~ while let Some(number) = numbers.pop() {
|
|
|
|
LL ~
|
|
|
|
|
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
|
|
error: you seem to be trying to pop elements from a `Vec` in a loop
|
2023-04-19 20:26:50 +00:00
|
|
|
--> $DIR/manual_while_let_some.rs:31:9
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
|
|
|
LL | let number = val.numbers.pop().unwrap();
|
2023-04-17 22:14:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: consider using a `while..let` loop
|
|
|
|
|
|
|
|
|
LL ~ while let Some(number) = val.numbers.pop() {
|
|
|
|
LL ~
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error: you seem to be trying to pop elements from a `Vec` in a loop
|
2023-04-19 20:26:50 +00:00
|
|
|
--> $DIR/manual_while_let_some.rs:35:20
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
|
|
|
LL | accept_i32(numbers.pop().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-17 22:14:56 +00:00
|
|
|
help: consider using a `while..let` loop
|
|
|
|
|
|
|
|
|
LL ~ while let Some(element) = numbers.pop() {
|
|
|
|
LL ~ accept_i32(element);
|
|
|
|
|
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
|
|
error: you seem to be trying to pop elements from a `Vec` in a loop
|
2023-04-19 20:26:50 +00:00
|
|
|
--> $DIR/manual_while_let_some.rs:39:20
|
2023-04-04 06:16:37 +00:00
|
|
|
|
|
|
|
|
LL | accept_i32(numbers.pop().expect(""));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-17 22:14:56 +00:00
|
|
|
help: consider using a `while..let` loop
|
|
|
|
|
|
|
|
|
LL ~ while let Some(element) = numbers.pop() {
|
|
|
|
LL ~ accept_i32(element);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: you seem to be trying to pop elements from a `Vec` in a loop
|
2023-04-19 20:26:50 +00:00
|
|
|
--> $DIR/manual_while_let_some.rs:82:9
|
2023-04-17 22:14:56 +00:00
|
|
|
|
|
|
|
|
LL | let (a, b) = numbers.pop().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: consider using a `while..let` loop
|
|
|
|
|
|
|
|
|
LL ~ while let Some((a, b)) = numbers.pop() {
|
|
|
|
LL ~
|
|
|
|
|
|
|
|
|
|
|
|
|
error: you seem to be trying to pop elements from a `Vec` in a loop
|
2023-04-19 20:26:50 +00:00
|
|
|
--> $DIR/manual_while_let_some.rs:86:26
|
2023-04-17 22:14:56 +00:00
|
|
|
|
|
|
|
|
LL | accept_i32_tuple(numbers.pop().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: consider using a `while..let` loop
|
|
|
|
|
|
|
|
|
LL ~ while let Some(element) = numbers.pop() {
|
|
|
|
LL ~ accept_i32_tuple(element);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: you seem to be trying to pop elements from a `Vec` in a loop
|
2023-04-19 20:26:50 +00:00
|
|
|
--> $DIR/manual_while_let_some.rs:91:9
|
2023-04-17 22:14:56 +00:00
|
|
|
|
|
|
|
|
LL | let Foo { a, b } = results.pop().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: consider using a `while..let` loop
|
|
|
|
|
|
|
|
|
LL ~ while let Some(Foo { a, b }) = results.pop() {
|
|
|
|
LL ~
|
|
|
|
|
|
2023-04-04 06:16:37 +00:00
|
|
|
|
2023-04-17 22:14:56 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2023-04-04 06:16:37 +00:00
|
|
|
|