2022-10-06 02:44:38 -05:00
|
|
|
error: use of a disallowed macro `std::println`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:13:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | println!("one");
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::disallowed-macros` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::disallowed_macros)]`
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: use of a disallowed macro `std::println`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:14:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | println!("two");
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `std::cfg`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:15:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | cfg!(unix);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `std::vec`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:16:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | vec![1, 2, 3];
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `serde::Serialize`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:18:14
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(Serialize)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2024-07-11 23:00:03 -05:00
|
|
|
= note: no serializing
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::expr`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:21:13
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | let _ = macros::expr!();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::stmt`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:22:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | macros::stmt!();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::pat`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:23:9
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | let macros::pat!() = 1;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::ty`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:24:12
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | let _: macros::ty!() = "";
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::item`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:25:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | macros::item!();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2023-09-12 11:13:53 -05:00
|
|
|
error: use of a disallowed macro `macros::binop`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:26:13
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | let _ = macros::binop!(1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::attr`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:31:1
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | / macros::attr! {
|
|
|
|
LL | | struct S;
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
error: use of a disallowed macro `macros::item`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:36:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | macros::item!();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::item`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:40:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | macros::item!();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of a disallowed macro `macros::item`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:44:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | macros::item!();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2024-02-10 15:10:05 -06:00
|
|
|
error: use of a disallowed macro `proc_macros::Derive`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:47:10
|
2024-02-10 15:10:05 -06:00
|
|
|
|
|
|
|
|
LL | #[derive(Derive)]
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
2022-10-06 02:44:38 -05:00
|
|
|
|