1
1
error: use of a disallowed method `regex::Regex::new`
2
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:33 :14
2
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:36 :14
3
3
|
4
4
LL | let re = Regex::new(r"ab.*c").unwrap();
5
5
| ^^^^^^^^^^
@@ -8,84 +8,96 @@ LL | let re = Regex::new(r"ab.*c").unwrap();
8
8
= help: to override `-D warnings` add `#[allow(clippy::disallowed_methods)]`
9
9
10
10
error: use of a disallowed method `regex::Regex::is_match`
11
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:35 :8
11
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:38 :8
12
12
|
13
13
LL | re.is_match("abc");
14
14
| ^^^^^^^^
15
15
|
16
16
= note: no matching allowed
17
17
18
18
error: use of a disallowed method `std::iter::Iterator::sum`
19
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:39 :14
19
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:42 :14
20
20
|
21
21
LL | a.iter().sum::<i32>();
22
22
| ^^^
23
23
24
24
error: use of a disallowed method `slice::sort_unstable`
25
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:42 :7
25
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:45 :7
26
26
|
27
27
LL | a.sort_unstable();
28
28
| ^^^^^^^^^^^^^
29
29
30
30
error: use of a disallowed method `f32::clamp`
31
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:46 :20
31
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:49 :20
32
32
|
33
33
LL | let _ = 2.0f32.clamp(3.0f32, 4.0f32);
34
34
| ^^^^^
35
35
36
36
error: use of a disallowed method `regex::Regex::new`
37
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:50 :61
37
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:53 :61
38
38
|
39
39
LL | let indirect: fn(&str) -> Result<Regex, regex::Error> = Regex::new;
40
40
| ^^^^^^^^^^
41
41
42
42
error: use of a disallowed method `f32::clamp`
43
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:54 :28
43
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:57 :28
44
44
|
45
45
LL | let in_call = Box::new(f32::clamp);
46
46
| ^^^^^^^^^^
47
47
48
48
error: use of a disallowed method `regex::Regex::new`
49
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:56 :53
49
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:59 :53
50
50
|
51
51
LL | let in_method_call = ["^", "$"].into_iter().map(Regex::new);
52
52
| ^^^^^^^^^^
53
53
54
54
error: use of a disallowed method `futures::stream::select_all`
55
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:60 :31
55
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:63 :31
56
56
|
57
57
LL | let same_name_as_module = select_all(vec![empty::<()>()]);
58
58
| ^^^^^^^^^^
59
59
60
60
error: use of a disallowed method `conf_disallowed_methods::local_fn`
61
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:63 :5
61
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:66 :5
62
62
|
63
63
LL | local_fn();
64
64
| ^^^^^^^^
65
65
66
66
error: use of a disallowed method `conf_disallowed_methods::local_mod::f`
67
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:65 :5
67
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:68 :5
68
68
|
69
69
LL | local_mod::f();
70
70
| ^^^^^^^^^^^^
71
71
72
72
error: use of a disallowed method `conf_disallowed_methods::Struct::method`
73
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:68 :7
73
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:71 :7
74
74
|
75
75
LL | s.method();
76
76
| ^^^^^^
77
77
78
78
error: use of a disallowed method `conf_disallowed_methods::Trait::provided_method`
79
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:70 :7
79
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:73 :7
80
80
|
81
81
LL | s.provided_method();
82
82
| ^^^^^^^^^^^^^^^
83
83
84
84
error: use of a disallowed method `conf_disallowed_methods::Trait::implemented_method`
85
- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:72 :7
85
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:75 :7
86
86
|
87
87
LL | s.implemented_method();
88
88
| ^^^^^^^^^^^^^^^^^^
89
89
90
- error: aborting due to 14 previous errors
90
+ error: use of a disallowed method `conf_disallowed_methods::identity`
91
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:78:5
92
+ |
93
+ LL | identity(());
94
+ | ^^^^^^^^
95
+
96
+ error: use of a disallowed method `conf_disallowed_methods::renamed`
97
+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:80:5
98
+ |
99
+ LL | renamed(1);
100
+ | ^^^^^^^
101
+
102
+ error: aborting due to 16 previous errors
91
103
0 commit comments