fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB39 linesraw
1error: using `drain` can result in unstable query results
2  --> $DIR/query_stability.rs:13:16
3   |
4LL |     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
8note: the lint level is defined here
9  --> $DIR/query_stability.rs:4:9
10   |
11LL | #![deny(rustc::potential_query_instability)]
12   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14error: using `iter` can result in unstable query results
15  --> $DIR/query_stability.rs:16:16
16   |
17LL |     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
22error: using `iter_mut` can result in unstable query results
23  --> $DIR/query_stability.rs:19:36
24   |
25LL |     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
30error: using `into_iter` can result in unstable query results
31  --> $DIR/query_stability.rs:22:14
32   |
33LL |     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
38error: aborting due to 4 previous errors
39