]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/internal-lints/query_stability.stderr
Auto merge of #107257 - inquisitivecrystal:ffi-attr, r=davidtwco
[rust.git] / tests / ui-fulldeps / internal-lints / query_stability.stderr
1 error: using `drain` can result in unstable query results
2   --> $DIR/query_stability.rs:13:16
3    |
4 LL |     for _ in x.drain() {}
5    |                ^^^^^
6    |
7    = note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
8 note: the lint level is defined here
9   --> $DIR/query_stability.rs:4:9
10    |
11 LL | #![deny(rustc::potential_query_instability)]
12    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: using `iter` can result in unstable query results
15   --> $DIR/query_stability.rs:16:16
16    |
17 LL |     for _ in x.iter() {}
18    |                ^^^^
19    |
20    = note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
21
22 error: using `iter_mut` can result in unstable query results
23   --> $DIR/query_stability.rs:19:36
24    |
25 LL |     for _ in Some(&mut x).unwrap().iter_mut() {}
26    |                                    ^^^^^^^^
27    |
28    = note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
29
30 error: using `into_iter` can result in unstable query results
31   --> $DIR/query_stability.rs:22:14
32    |
33 LL |     for _ in x {}
34    |              ^
35    |
36    = note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
37
38 error: aborting due to 4 previous errors
39