1
1
error: `std::sync::atomic::AtomicU32` is not allowed according to config
2
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:7 :1
2
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:9 :1
3
3
|
4
4
LL | use std::sync::atomic::AtomicU32;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,123 +8,123 @@ LL | use std::sync::atomic::AtomicU32;
8
8
= help: to override `-D warnings` add `#[allow(clippy::disallowed_types)]`
9
9
10
10
error: `std::time::Instant` is not allowed according to config
11
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:8 :1
11
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:10 :1
12
12
|
13
13
LL | use std::time::Instant as Sneaky;
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
15
16
16
error: `std::time::Instant` is not allowed according to config
17
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:12 :33
17
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:14 :33
18
18
|
19
19
LL | fn bad_return_type() -> fn() -> Sneaky {
20
20
| ^^^^^^
21
21
22
22
error: `std::time::Instant` is not allowed according to config
23
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:16 :28
23
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:18 :28
24
24
|
25
25
LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {}
26
26
| ^^^^^^
27
27
28
28
error: `std::sync::atomic::AtomicU32` is not allowed according to config
29
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:16 :39
29
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:18 :39
30
30
|
31
31
LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {}
32
32
| ^^^^^^^^^^^^^^^^^^^^^^
33
33
34
34
error: `std::io::Read` is not allowed according to config
35
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:18 :22
35
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:20 :22
36
36
|
37
37
LL | fn trait_obj(_: &dyn std::io::Read) {}
38
38
| ^^^^^^^^^^^^^
39
39
40
40
error: `usize` is not allowed according to config
41
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:20 :33
41
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:22 :33
42
42
|
43
43
LL | fn full_and_single_path_prim(_: usize, _: bool) {}
44
44
| ^^^^^
45
45
46
46
error: `bool` is not allowed according to config
47
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:20 :43
47
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:22 :43
48
48
|
49
49
LL | fn full_and_single_path_prim(_: usize, _: bool) {}
50
50
| ^^^^
51
51
52
52
error: `usize` is not allowed according to config
53
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:22 :28
53
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:24 :28
54
54
|
55
55
LL | fn const_generics<const C: usize>() {}
56
56
| ^^^^^
57
57
58
58
error: `usize` is not allowed according to config
59
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:24 :24
59
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:26 :24
60
60
|
61
61
LL | struct GenArg<const U: usize>([u8; U]);
62
62
| ^^^^^
63
63
64
64
error: `std::net::Ipv4Addr` is not allowed according to config
65
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:28 :10
65
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:30 :10
66
66
|
67
67
LL | fn ip(_: std::net::Ipv4Addr) {}
68
68
| ^^^^^^^^^^^^^^^^^^
69
69
|
70
70
= note: no IPv4 allowed (from clippy.toml)
71
71
72
72
error: `std::net::TcpListener` is not allowed according to config
73
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:30 :16
73
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:32 :16
74
74
|
75
75
LL | fn listener(_: std::net::TcpListener) {}
76
76
| ^^^^^^^^^^^^^^^^^^^^^
77
77
78
78
error: `std::collections::HashMap` is not allowed according to config
79
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:34 :48
79
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:36 :48
80
80
|
81
81
LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
82
82
| ^^^^^^^^^^^^^^^^^^^^^^^^^
83
83
84
84
error: `std::collections::HashMap` is not allowed according to config
85
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:34 :12
85
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:36 :12
86
86
|
87
87
LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
88
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89
89
90
90
error: `std::time::Instant` is not allowed according to config
91
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:35 :13
91
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:37 :13
92
92
|
93
93
LL | let _ = Sneaky::now();
94
94
| ^^^^^^
95
95
96
96
error: `std::sync::atomic::AtomicU32` is not allowed according to config
97
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:36 :13
97
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:38 :13
98
98
|
99
99
LL | let _ = foo::atomic::AtomicU32::new(0);
100
100
| ^^^^^^^^^^^^^^^^^^^^^^
101
101
102
102
error: `std::sync::atomic::AtomicU32` is not allowed according to config
103
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:37 :17
103
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:39 :17
104
104
|
105
105
LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
106
106
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107
107
108
108
error: `std::sync::atomic::AtomicU32` is not allowed according to config
109
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:37 :48
109
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:39 :48
110
110
|
111
111
LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
112
112
| ^^^^^^^^^^^^^^^^^^^^^^
113
113
114
114
error: `syn::TypePath` is not allowed according to config
115
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:38 :43
115
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:40 :43
116
116
|
117
117
LL | let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
118
118
| ^^^^^^^^^^^^^
119
119
120
120
error: `syn::Ident` is not allowed according to config
121
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:39 :13
121
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:41 :13
122
122
|
123
123
LL | let _ = syn::Ident::new("", todo!());
124
124
| ^^^^^^^^^^
125
125
126
126
error: `usize` is not allowed according to config
127
- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:41 :12
127
+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:43 :12
128
128
|
129
129
LL | let _: usize = 64_usize;
130
130
| ^^^^^
0 commit comments