1 error: use of a disallowed method `regex::Regex::new`
2 --> $DIR/conf_disallowed_methods.rs:33:14
4 LL | let re = Regex::new(r"ab.*c").unwrap();
7 = note: `-D clippy::disallowed-methods` implied by `-D warnings`
9 error: use of a disallowed method `regex::Regex::is_match`
10 --> $DIR/conf_disallowed_methods.rs:34:5
12 LL | re.is_match("abc");
15 = note: no matching allowed (from clippy.toml)
17 error: use of a disallowed method `std::iter::Iterator::sum`
18 --> $DIR/conf_disallowed_methods.rs:37:5
20 LL | a.iter().sum::<i32>();
21 | ^^^^^^^^^^^^^^^^^^^^^
23 error: use of a disallowed method `slice::sort_unstable`
24 --> $DIR/conf_disallowed_methods.rs:39:5
26 LL | a.sort_unstable();
29 error: use of a disallowed method `f32::clamp`
30 --> $DIR/conf_disallowed_methods.rs:41:13
32 LL | let _ = 2.0f32.clamp(3.0f32, 4.0f32);
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 error: use of a disallowed method `regex::Regex::new`
36 --> $DIR/conf_disallowed_methods.rs:44:61
38 LL | let indirect: fn(&str) -> Result<Regex, regex::Error> = Regex::new;
41 error: use of a disallowed method `f32::clamp`
42 --> $DIR/conf_disallowed_methods.rs:47:28
44 LL | let in_call = Box::new(f32::clamp);
47 error: use of a disallowed method `regex::Regex::new`
48 --> $DIR/conf_disallowed_methods.rs:48:53
50 LL | let in_method_call = ["^", "$"].into_iter().map(Regex::new);
53 error: use of a disallowed method `futures::stream::select_all`
54 --> $DIR/conf_disallowed_methods.rs:51:31
56 LL | let same_name_as_module = select_all(vec![empty::<()>()]);
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59 error: use of a disallowed method `conf_disallowed_methods::local_fn`
60 --> $DIR/conf_disallowed_methods.rs:53:5
65 error: use of a disallowed method `conf_disallowed_methods::local_mod::f`
66 --> $DIR/conf_disallowed_methods.rs:54:5
71 error: use of a disallowed method `conf_disallowed_methods::Struct::method`
72 --> $DIR/conf_disallowed_methods.rs:56:5
77 error: use of a disallowed method `conf_disallowed_methods::Trait::provided_method`
78 --> $DIR/conf_disallowed_methods.rs:57:5
80 LL | s.provided_method();
83 error: use of a disallowed method `conf_disallowed_methods::Trait::implemented_method`
84 --> $DIR/conf_disallowed_methods.rs:58:5
86 LL | s.implemented_method();
87 | ^^^^^^^^^^^^^^^^^^^^^^
89 error: aborting due to 14 previous errors