2022-01-05 06:02:16 -06:00
|
|
|
error: using `drain` can result in unstable query results
|
|
|
|
--> $DIR/query_stability.rs:13:16
|
|
|
|
|
|
|
|
|
LL | for _ in x.drain() {}
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2022-09-22 09:25:05 -05:00
|
|
|
= note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
|
2022-01-05 06:02:16 -06:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/query_stability.rs:4:9
|
|
|
|
|
|
|
|
|
LL | #![deny(rustc::potential_query_instability)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: using `iter` can result in unstable query results
|
|
|
|
--> $DIR/query_stability.rs:16:16
|
|
|
|
|
|
|
|
|
LL | for _ in x.iter() {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
|
|
|
|
|
|
|
|
error: using `iter_mut` can result in unstable query results
|
|
|
|
--> $DIR/query_stability.rs:19:36
|
|
|
|
|
|
|
|
|
LL | for _ in Some(&mut x).unwrap().iter_mut() {}
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
|
|
|
|
|
|
|
|
error: using `into_iter` can result in unstable query results
|
|
|
|
--> $DIR/query_stability.rs:22:14
|
|
|
|
|
|
|
|
|
LL | for _ in x {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
|
|
|
|
|
2024-01-29 22:42:29 -06:00
|
|
|
error: using `keys` can result in unstable query results
|
|
|
|
--> $DIR/query_stability.rs:26:15
|
|
|
|
|
|
|
|
|
LL | let _ = x.keys();
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
|
|
|
|
|
|
|
|
error: using `values` can result in unstable query results
|
|
|
|
--> $DIR/query_stability.rs:29:15
|
|
|
|
|
|
|
|
|
LL | let _ = x.values();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
|
|
|
|
|
|
|
|
error: using `values_mut` can result in unstable query results
|
|
|
|
--> $DIR/query_stability.rs:33:18
|
|
|
|
|
|
|
|
|
LL | for val in x.values_mut() {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2022-01-05 06:02:16 -06:00
|
|
|
|