]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui-toml / toml_disallowed_methods / conf_disallowed_methods.stderr
CommitLineData
c295e0f8 1error: use of a disallowed method `regex::Regex::new`
487cf647 2 --> $DIR/conf_disallowed_methods.rs:33:14
f20569fa
XL
3 |
4LL | let re = Regex::new(r"ab.*c").unwrap();
5 | ^^^^^^^^^^^^^^^^^^^^
6 |
a2a8927a 7 = note: `-D clippy::disallowed-methods` implied by `-D warnings`
f20569fa 8
c295e0f8 9error: use of a disallowed method `regex::Regex::is_match`
487cf647 10 --> $DIR/conf_disallowed_methods.rs:34:5
f20569fa
XL
11 |
12LL | re.is_match("abc");
13 | ^^^^^^^^^^^^^^^^^^
c295e0f8
XL
14 |
15 = note: no matching allowed (from clippy.toml)
f20569fa 16
c295e0f8 17error: use of a disallowed method `std::iter::Iterator::sum`
487cf647 18 --> $DIR/conf_disallowed_methods.rs:37:5
f20569fa
XL
19 |
20LL | a.iter().sum::<i32>();
21 | ^^^^^^^^^^^^^^^^^^^^^
22
5099ac24 23error: use of a disallowed method `slice::sort_unstable`
487cf647 24 --> $DIR/conf_disallowed_methods.rs:39:5
5099ac24
FG
25 |
26LL | a.sort_unstable();
27 | ^^^^^^^^^^^^^^^^^
28
29error: use of a disallowed method `f32::clamp`
487cf647 30 --> $DIR/conf_disallowed_methods.rs:41:13
5099ac24
FG
31 |
32LL | let _ = 2.0f32.clamp(3.0f32, 4.0f32);
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
923072b8 35error: use of a disallowed method `regex::Regex::new`
487cf647 36 --> $DIR/conf_disallowed_methods.rs:44:61
923072b8
FG
37 |
38LL | let indirect: fn(&str) -> Result<Regex, regex::Error> = Regex::new;
39 | ^^^^^^^^^^
40
41error: use of a disallowed method `f32::clamp`
487cf647 42 --> $DIR/conf_disallowed_methods.rs:47:28
923072b8
FG
43 |
44LL | let in_call = Box::new(f32::clamp);
45 | ^^^^^^^^^^
46
47error: use of a disallowed method `regex::Regex::new`
487cf647 48 --> $DIR/conf_disallowed_methods.rs:48:53
923072b8
FG
49 |
50LL | let in_method_call = ["^", "$"].into_iter().map(Regex::new);
51 | ^^^^^^^^^^
52
2b03887a 53error: use of a disallowed method `futures::stream::select_all`
487cf647 54 --> $DIR/conf_disallowed_methods.rs:51:31
2b03887a
FG
55 |
56LL | let same_name_as_module = select_all(vec![empty::<()>()]);
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
487cf647
FG
59error: use of a disallowed method `conf_disallowed_methods::local_fn`
60 --> $DIR/conf_disallowed_methods.rs:53:5
61 |
62LL | local_fn();
63 | ^^^^^^^^^^
64
65error: use of a disallowed method `conf_disallowed_methods::local_mod::f`
66 --> $DIR/conf_disallowed_methods.rs:54:5
67 |
68LL | local_mod::f();
69 | ^^^^^^^^^^^^^^
70
71error: use of a disallowed method `conf_disallowed_methods::Struct::method`
72 --> $DIR/conf_disallowed_methods.rs:56:5
73 |
74LL | s.method();
75 | ^^^^^^^^^^
76
77error: use of a disallowed method `conf_disallowed_methods::Trait::provided_method`
78 --> $DIR/conf_disallowed_methods.rs:57:5
79 |
80LL | s.provided_method();
81 | ^^^^^^^^^^^^^^^^^^^
82
83error: use of a disallowed method `conf_disallowed_methods::Trait::implemented_method`
84 --> $DIR/conf_disallowed_methods.rs:58:5
85 |
86LL | s.implemented_method();
87 | ^^^^^^^^^^^^^^^^^^^^^^
88
89error: aborting due to 14 previous errors
f20569fa 90