11error: use of a disallowed type `std::sync::atomic::AtomicU32`
2- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:7 :1
2+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:8 :1
33 |
44LL | use std::sync::atomic::AtomicU32;
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,123 +8,123 @@ LL | use std::sync::atomic::AtomicU32;
88 = help: to override `-D warnings` add `#[allow(clippy::disallowed_types)]`
99
1010error: use of a disallowed type `std::time::Instant`
11- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:9 :1
11+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:10 :1
1212 |
1313LL | use std::time::Instant as Sneaky;
1414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515
1616error: use of a disallowed type `std::time::Instant`
17- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:14 :33
17+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:15 :33
1818 |
1919LL | fn bad_return_type() -> fn() -> Sneaky {
2020 | ^^^^^^
2121
2222error: use of a disallowed type `std::time::Instant`
23- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:19 :28
23+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:20 :28
2424 |
2525LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {}
2626 | ^^^^^^
2727
2828error: use of a disallowed type `std::sync::atomic::AtomicU32`
29- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:19 :39
29+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:20 :39
3030 |
3131LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {}
3232 | ^^^^^^^^^^^^^^^^^^^^^^
3333
3434error: use of a disallowed type `std::io::Read`
35- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:23 :22
35+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:24 :22
3636 |
3737LL | fn trait_obj(_: &dyn std::io::Read) {}
3838 | ^^^^^^^^^^^^^
3939
4040error: use of a disallowed type `usize`
41- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:26 :33
41+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:27 :33
4242 |
4343LL | fn full_and_single_path_prim(_: usize, _: bool) {}
4444 | ^^^^^
4545
4646error: use of a disallowed type `bool`
47- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:26 :43
47+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:27 :43
4848 |
4949LL | fn full_and_single_path_prim(_: usize, _: bool) {}
5050 | ^^^^
5151
5252error: use of a disallowed type `usize`
53- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:30 :28
53+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:31 :28
5454 |
5555LL | fn const_generics<const C: usize>() {}
5656 | ^^^^^
5757
5858error: use of a disallowed type `usize`
59- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:33 :24
59+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:34 :24
6060 |
6161LL | struct GenArg<const U: usize>([u8; U]);
6262 | ^^^^^
6363
6464error: use of a disallowed type `std::net::Ipv4Addr`
65- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:38 :10
65+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:39 :10
6666 |
6767LL | fn ip(_: std::net::Ipv4Addr) {}
6868 | ^^^^^^^^^^^^^^^^^^
6969 |
7070 = note: no IPv4 allowed
7171
7272error: use of a disallowed type `std::net::TcpListener`
73- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:41 :16
73+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:42 :16
7474 |
7575LL | fn listener(_: std::net::TcpListener) {}
7676 | ^^^^^^^^^^^^^^^^^^^^^
7777
7878error: use of a disallowed type `std::collections::HashMap`
79- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:46 :48
79+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:47 :48
8080 |
8181LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
8282 | ^^^^^^^^^^^^^^^^^^^^^^^^^
8383
8484error: use of a disallowed type `std::collections::HashMap`
85- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:46 :12
85+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:47 :12
8686 |
8787LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
8888 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8989
9090error: use of a disallowed type `std::time::Instant`
91- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:49 :13
91+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:50 :13
9292 |
9393LL | let _ = Sneaky::now();
9494 | ^^^^^^
9595
9696error: use of a disallowed type `std::sync::atomic::AtomicU32`
97- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:51 :13
97+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:52 :13
9898 |
9999LL | let _ = foo::atomic::AtomicU32::new(0);
100100 | ^^^^^^^^^^^^^^^^^^^^^^
101101
102102error: use of a disallowed type `std::sync::atomic::AtomicU32`
103- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:53 :17
103+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:54 :17
104104 |
105105LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
106106 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107107
108108error: use of a disallowed type `std::sync::atomic::AtomicU32`
109- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:53 :48
109+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:54 :48
110110 |
111111LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
112112 | ^^^^^^^^^^^^^^^^^^^^^^
113113
114114error: use of a disallowed type `syn::TypePath`
115- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:56 :43
115+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:57 :43
116116 |
117117LL | let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
118118 | ^^^^^^^^^^^^^
119119
120120error: use of a disallowed type `proc_macro2::Ident`
121- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:58 :13
121+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:59 :13
122122 |
123123LL | let _ = syn::Ident::new("", todo!());
124124 | ^^^^^^^^^^
125125
126126error: use of a disallowed type `usize`
127- --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:61 :12
127+ --> tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs:62 :12
128128 |
129129LL | let _: usize = 64_usize;
130130 | ^^^^^
0 commit comments