]>
Commit | Line | Data |
---|---|---|
c295e0f8 | 1 | error: use of a disallowed method `regex::Regex::new` |
487cf647 | 2 | --> $DIR/conf_disallowed_methods.rs:33:14 |
f20569fa XL |
3 | | |
4 | LL | let re = Regex::new(r"ab.*c").unwrap(); | |
5 | | ^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
a2a8927a | 7 | = note: `-D clippy::disallowed-methods` implied by `-D warnings` |
f20569fa | 8 | |
c295e0f8 | 9 | error: use of a disallowed method `regex::Regex::is_match` |
487cf647 | 10 | --> $DIR/conf_disallowed_methods.rs:34:5 |
f20569fa XL |
11 | | |
12 | LL | re.is_match("abc"); | |
13 | | ^^^^^^^^^^^^^^^^^^ | |
c295e0f8 XL |
14 | | |
15 | = note: no matching allowed (from clippy.toml) | |
f20569fa | 16 | |
c295e0f8 | 17 | error: use of a disallowed method `std::iter::Iterator::sum` |
487cf647 | 18 | --> $DIR/conf_disallowed_methods.rs:37:5 |
f20569fa XL |
19 | | |
20 | LL | a.iter().sum::<i32>(); | |
21 | | ^^^^^^^^^^^^^^^^^^^^^ | |
22 | ||
5099ac24 | 23 | error: use of a disallowed method `slice::sort_unstable` |
487cf647 | 24 | --> $DIR/conf_disallowed_methods.rs:39:5 |
5099ac24 FG |
25 | | |
26 | LL | a.sort_unstable(); | |
27 | | ^^^^^^^^^^^^^^^^^ | |
28 | ||
29 | error: use of a disallowed method `f32::clamp` | |
487cf647 | 30 | --> $DIR/conf_disallowed_methods.rs:41:13 |
5099ac24 FG |
31 | | |
32 | LL | let _ = 2.0f32.clamp(3.0f32, 4.0f32); | |
33 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
34 | ||
923072b8 | 35 | error: use of a disallowed method `regex::Regex::new` |
487cf647 | 36 | --> $DIR/conf_disallowed_methods.rs:44:61 |
923072b8 FG |
37 | | |
38 | LL | let indirect: fn(&str) -> Result<Regex, regex::Error> = Regex::new; | |
39 | | ^^^^^^^^^^ | |
40 | ||
41 | error: use of a disallowed method `f32::clamp` | |
487cf647 | 42 | --> $DIR/conf_disallowed_methods.rs:47:28 |
923072b8 FG |
43 | | |
44 | LL | let in_call = Box::new(f32::clamp); | |
45 | | ^^^^^^^^^^ | |
46 | ||
47 | error: use of a disallowed method `regex::Regex::new` | |
487cf647 | 48 | --> $DIR/conf_disallowed_methods.rs:48:53 |
923072b8 FG |
49 | | |
50 | LL | let in_method_call = ["^", "$"].into_iter().map(Regex::new); | |
51 | | ^^^^^^^^^^ | |
52 | ||
2b03887a | 53 | error: use of a disallowed method `futures::stream::select_all` |
487cf647 | 54 | --> $DIR/conf_disallowed_methods.rs:51:31 |
2b03887a FG |
55 | | |
56 | LL | let same_name_as_module = select_all(vec![empty::<()>()]); | |
57 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
58 | ||
487cf647 FG |
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 | |
f20569fa | 90 |