]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.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:33: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:34: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:37: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:39:5
25    |
26 LL |     a.sort_unstable();
27    |     ^^^^^^^^^^^^^^^^^
28
29 error: use of a disallowed method `f32::clamp`
30   --> $DIR/conf_disallowed_methods.rs:41:13
31    |
32 LL |     let _ = 2.0f32.clamp(3.0f32, 4.0f32);
33    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
35 error: use of a disallowed method `regex::Regex::new`
36   --> $DIR/conf_disallowed_methods.rs:44:61
37    |
38 LL |     let indirect: fn(&str) -> Result<Regex, regex::Error> = Regex::new;
39    |                                                             ^^^^^^^^^^
40
41 error: use of a disallowed method `f32::clamp`
42   --> $DIR/conf_disallowed_methods.rs:47:28
43    |
44 LL |     let in_call = Box::new(f32::clamp);
45    |                            ^^^^^^^^^^
46
47 error: use of a disallowed method `regex::Regex::new`
48   --> $DIR/conf_disallowed_methods.rs:48:53
49    |
50 LL |     let in_method_call = ["^", "$"].into_iter().map(Regex::new);
51    |                                                     ^^^^^^^^^^
52
53 error: use of a disallowed method `futures::stream::select_all`
54   --> $DIR/conf_disallowed_methods.rs:51:31
55    |
56 LL |     let same_name_as_module = select_all(vec![empty::<()>()]);
57    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
59 error: use of a disallowed method `conf_disallowed_methods::local_fn`
60   --> $DIR/conf_disallowed_methods.rs:53:5
61    |
62 LL |     local_fn();
63    |     ^^^^^^^^^^
64
65 error: use of a disallowed method `conf_disallowed_methods::local_mod::f`
66   --> $DIR/conf_disallowed_methods.rs:54:5
67    |
68 LL |     local_mod::f();
69    |     ^^^^^^^^^^^^^^
70
71 error: use of a disallowed method `conf_disallowed_methods::Struct::method`
72   --> $DIR/conf_disallowed_methods.rs:56:5
73    |
74 LL |     s.method();
75    |     ^^^^^^^^^^
76
77 error: use of a disallowed method `conf_disallowed_methods::Trait::provided_method`
78   --> $DIR/conf_disallowed_methods.rs:57:5
79    |
80 LL |     s.provided_method();
81    |     ^^^^^^^^^^^^^^^^^^^
82
83 error: use of a disallowed method `conf_disallowed_methods::Trait::implemented_method`
84   --> $DIR/conf_disallowed_methods.rs:58:5
85    |
86 LL |     s.implemented_method();
87    |     ^^^^^^^^^^^^^^^^^^^^^^
88
89 error: aborting due to 14 previous errors
90