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