]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-toml/toml_disallowed_type/conf_disallowed_type.stderr
Added docs to internal_macro const
[rust.git] / src / tools / clippy / tests / ui-toml / toml_disallowed_type / conf_disallowed_type.stderr
1 error: `std::sync::atomic::AtomicU32` is not allowed according to config
2   --> $DIR/conf_disallowed_type.rs:7:1
3    |
4 LL | use std::sync::atomic::AtomicU32;
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::disallowed-type` implied by `-D warnings`
8
9 error: `std::time::Instant` is not allowed according to config
10   --> $DIR/conf_disallowed_type.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_type.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_type.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_type.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_type.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_type.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_type.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_type.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_type.rs:24:24
59    |
60 LL | struct GenArg<const U: usize>([u8; U]);
61    |                        ^^^^^
62
63 error: `std::collections::HashMap` is not allowed according to config
64   --> $DIR/conf_disallowed_type.rs:30:48
65    |
66 LL |     let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
67    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
68
69 error: `std::collections::HashMap` is not allowed according to config
70   --> $DIR/conf_disallowed_type.rs:30:12
71    |
72 LL |     let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
73    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74
75 error: `std::time::Instant` is not allowed according to config
76   --> $DIR/conf_disallowed_type.rs:31:13
77    |
78 LL |     let _ = Sneaky::now();
79    |             ^^^^^^
80
81 error: `std::sync::atomic::AtomicU32` is not allowed according to config
82   --> $DIR/conf_disallowed_type.rs:32:13
83    |
84 LL |     let _ = foo::atomic::AtomicU32::new(0);
85    |             ^^^^^^^^^^^^^^^^^^^^^^
86
87 error: `std::sync::atomic::AtomicU32` is not allowed according to config
88   --> $DIR/conf_disallowed_type.rs:33:17
89    |
90 LL |     static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
91    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
93 error: `std::sync::atomic::AtomicU32` is not allowed according to config
94   --> $DIR/conf_disallowed_type.rs:33:48
95    |
96 LL |     static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
97    |                                                ^^^^^^^^^^^^^^^^^^^^^^
98
99 error: `syn::TypePath` is not allowed according to config
100   --> $DIR/conf_disallowed_type.rs:34:43
101    |
102 LL |     let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
103    |                                           ^^^^^^^^^^^^^
104
105 error: `syn::Ident` is not allowed according to config
106   --> $DIR/conf_disallowed_type.rs:35:13
107    |
108 LL |     let _ = syn::Ident::new("", todo!());
109    |             ^^^^^^^^^^
110
111 error: `usize` is not allowed according to config
112   --> $DIR/conf_disallowed_type.rs:37:12
113    |
114 LL |     let _: usize = 64_usize;
115    |            ^^^^^
116
117 error: aborting due to 19 previous errors
118