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