]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui-toml/toml_disallowed_type/conf_disallowed_type.stderr
New upstream version 1.55.0+dfsg1
[rustc.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:20:22
35 |
36 LL | fn trait_obj(_: &dyn std::io::Read) {
37 | ^^^^^^^^^^^^^
38
39 error: `std::collections::HashMap` is not allowed according to config
40 --> $DIR/conf_disallowed_type.rs:28:48
41 |
42 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^
44
45 error: `std::collections::HashMap` is not allowed according to config
46 --> $DIR/conf_disallowed_type.rs:28:12
47 |
48 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
51 error: `std::time::Instant` is not allowed according to config
52 --> $DIR/conf_disallowed_type.rs:29:13
53 |
54 LL | let _ = Sneaky::now();
55 | ^^^^^^
56
57 error: `std::sync::atomic::AtomicU32` is not allowed according to config
58 --> $DIR/conf_disallowed_type.rs:30:13
59 |
60 LL | let _ = foo::atomic::AtomicU32::new(0);
61 | ^^^^^^^^^^^^^^^^^^^^^^
62
63 error: `std::sync::atomic::AtomicU32` is not allowed according to config
64 --> $DIR/conf_disallowed_type.rs:31:17
65 |
66 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
69 error: `std::sync::atomic::AtomicU32` is not allowed according to config
70 --> $DIR/conf_disallowed_type.rs:31:48
71 |
72 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
73 | ^^^^^^^^^^^^^^^^^^^^^^
74
75 error: `syn::TypePath` is not allowed according to config
76 --> $DIR/conf_disallowed_type.rs:32:43
77 |
78 LL | let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
79 | ^^^^^^^^^^^^^
80
81 error: `proc_macro2::Ident` is not allowed according to config
82 --> $DIR/conf_disallowed_type.rs:33:13
83 |
84 LL | let _ = syn::Ident::new("", todo!());
85 | ^^^^^^^^^^
86
87 error: aborting due to 14 previous errors
88