]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui-toml / toml_disallowed_methods / conf_disallowed_methods.stderr
1 error: use of a disallowed method `regex::Regex::new`
2 --> $DIR/conf_disallowed_methods.rs:7:14
3 |
4 LL | let re = Regex::new(r"ab.*c").unwrap();
5 | ^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::disallowed-methods` implied by `-D warnings`
8
9 error: use of a disallowed method `regex::Regex::is_match`
10 --> $DIR/conf_disallowed_methods.rs:8:5
11 |
12 LL | re.is_match("abc");
13 | ^^^^^^^^^^^^^^^^^^
14 |
15 = note: no matching allowed (from clippy.toml)
16
17 error: use of a disallowed method `std::iter::Iterator::sum`
18 --> $DIR/conf_disallowed_methods.rs:11:5
19 |
20 LL | a.iter().sum::<i32>();
21 | ^^^^^^^^^^^^^^^^^^^^^
22
23 error: use of a disallowed method `slice::sort_unstable`
24 --> $DIR/conf_disallowed_methods.rs:13:5
25 |
26 LL | a.sort_unstable();
27 | ^^^^^^^^^^^^^^^^^
28
29 error: use of a disallowed method `f32::clamp`
30 --> $DIR/conf_disallowed_methods.rs:15:13
31 |
32 LL | let _ = 2.0f32.clamp(3.0f32, 4.0f32);
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
35 error: aborting due to 5 previous errors
36