1 error: `std::sync::atomic::AtomicU32` is not allowed according to config
2 --> $DIR/conf_disallowed_type.rs:7:1
4 LL | use std::sync::atomic::AtomicU32;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::disallowed-type` implied by `-D warnings`
9 error: `std::time::Instant` is not allowed according to config
10 --> $DIR/conf_disallowed_type.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_type.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_type.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_type.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_type.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_type.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_type.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_type.rs:22:28
54 LL | fn const_generics<const C: usize>() {}
57 error: `usize` is not allowed according to config
58 --> $DIR/conf_disallowed_type.rs:24:24
60 LL | struct GenArg<const U: usize>([u8; U]);
63 error: `std::collections::HashMap` is not allowed according to config
64 --> $DIR/conf_disallowed_type.rs:30:48
66 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^
69 error: `std::collections::HashMap` is not allowed according to config
70 --> $DIR/conf_disallowed_type.rs:30:12
72 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75 error: `std::time::Instant` is not allowed according to config
76 --> $DIR/conf_disallowed_type.rs:31:13
78 LL | let _ = Sneaky::now();
81 error: `std::sync::atomic::AtomicU32` is not allowed according to config
82 --> $DIR/conf_disallowed_type.rs:32:13
84 LL | let _ = foo::atomic::AtomicU32::new(0);
85 | ^^^^^^^^^^^^^^^^^^^^^^
87 error: `std::sync::atomic::AtomicU32` is not allowed according to config
88 --> $DIR/conf_disallowed_type.rs:33:17
90 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 error: `std::sync::atomic::AtomicU32` is not allowed according to config
94 --> $DIR/conf_disallowed_type.rs:33:48
96 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
97 | ^^^^^^^^^^^^^^^^^^^^^^
99 error: `syn::TypePath` is not allowed according to config
100 --> $DIR/conf_disallowed_type.rs:34:43
102 LL | let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
105 error: `syn::Ident` is not allowed according to config
106 --> $DIR/conf_disallowed_type.rs:35:13
108 LL | let _ = syn::Ident::new("", todo!());
111 error: `usize` is not allowed according to config
112 --> $DIR/conf_disallowed_type.rs:37:12
114 LL | let _: usize = 64_usize;
117 error: aborting due to 19 previous errors