1 error: `std::sync::atomic::AtomicU32` is not allowed according to config
2 --> $DIR/conf_disallowed_types.rs:7:1
4 LL | use std::sync::atomic::AtomicU32;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::disallowed-types` implied by `-D warnings`
9 error: `std::time::Instant` is not allowed according to config
10 --> $DIR/conf_disallowed_types.rs:8:1
12 LL | use std::time::Instant as Sneaky;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: `std::time::Instant` is not allowed according to config
16 --> $DIR/conf_disallowed_types.rs:12:33
18 LL | fn bad_return_type() -> fn() -> Sneaky {
21 error: `std::time::Instant` is not allowed according to config
22 --> $DIR/conf_disallowed_types.rs:16:28
24 LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {}
27 error: `std::sync::atomic::AtomicU32` is not allowed according to config
28 --> $DIR/conf_disallowed_types.rs:16:39
30 LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {}
31 | ^^^^^^^^^^^^^^^^^^^^^^
33 error: `std::io::Read` is not allowed according to config
34 --> $DIR/conf_disallowed_types.rs:18:22
36 LL | fn trait_obj(_: &dyn std::io::Read) {}
39 error: `usize` is not allowed according to config
40 --> $DIR/conf_disallowed_types.rs:20:33
42 LL | fn full_and_single_path_prim(_: usize, _: bool) {}
45 error: `bool` is not allowed according to config
46 --> $DIR/conf_disallowed_types.rs:20:43
48 LL | fn full_and_single_path_prim(_: usize, _: bool) {}
51 error: `usize` is not allowed according to config
52 --> $DIR/conf_disallowed_types.rs:22:28
54 LL | fn const_generics<const C: usize>() {}
57 error: `usize` is not allowed according to config
58 --> $DIR/conf_disallowed_types.rs:24:24
60 LL | struct GenArg<const U: usize>([u8; U]);
63 error: `std::net::Ipv4Addr` is not allowed according to config
64 --> $DIR/conf_disallowed_types.rs:28:10
66 LL | fn ip(_: std::net::Ipv4Addr) {}
69 = note: no IPv4 allowed (from clippy.toml)
71 error: `std::net::TcpListener` is not allowed according to config
72 --> $DIR/conf_disallowed_types.rs:30:16
74 LL | fn listener(_: std::net::TcpListener) {}
75 | ^^^^^^^^^^^^^^^^^^^^^
77 error: `std::collections::HashMap` is not allowed according to config
78 --> $DIR/conf_disallowed_types.rs:34:48
80 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
81 | ^^^^^^^^^^^^^^^^^^^^^^^^^
83 error: `std::collections::HashMap` is not allowed according to config
84 --> $DIR/conf_disallowed_types.rs:34:12
86 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
87 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89 error: `std::time::Instant` is not allowed according to config
90 --> $DIR/conf_disallowed_types.rs:35:13
92 LL | let _ = Sneaky::now();
95 error: `std::sync::atomic::AtomicU32` is not allowed according to config
96 --> $DIR/conf_disallowed_types.rs:36:13
98 LL | let _ = foo::atomic::AtomicU32::new(0);
99 | ^^^^^^^^^^^^^^^^^^^^^^
101 error: `std::sync::atomic::AtomicU32` is not allowed according to config
102 --> $DIR/conf_disallowed_types.rs:37:17
104 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107 error: `std::sync::atomic::AtomicU32` is not allowed according to config
108 --> $DIR/conf_disallowed_types.rs:37:48
110 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
111 | ^^^^^^^^^^^^^^^^^^^^^^
113 error: `syn::TypePath` is not allowed according to config
114 --> $DIR/conf_disallowed_types.rs:38:43
116 LL | let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
119 error: `syn::Ident` is not allowed according to config
120 --> $DIR/conf_disallowed_types.rs:39:13
122 LL | let _ = syn::Ident::new("", todo!());
125 error: `usize` is not allowed according to config
126 --> $DIR/conf_disallowed_types.rs:41:12
128 LL | let _: usize = 64_usize;
131 error: aborting due to 21 previous errors