mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-30 15:03:36 +00:00
105 lines
2.9 KiB
Text
105 lines
2.9 KiB
Text
error: use of a disallowed macro `std::println`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:13:5
|
|
|
|
|
LL | println!("one");
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::disallowed-macros` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::disallowed_macros)]`
|
|
|
|
error: use of a disallowed macro `std::println`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:14:5
|
|
|
|
|
LL | println!("two");
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `std::cfg`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:15:5
|
|
|
|
|
LL | cfg!(unix);
|
|
| ^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `std::vec`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:16:5
|
|
|
|
|
LL | vec![1, 2, 3];
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `serde::Serialize`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:18:14
|
|
|
|
|
LL | #[derive(Serialize)]
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: no serializing (from clippy.toml)
|
|
|
|
error: use of a disallowed macro `macros::expr`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:21:13
|
|
|
|
|
LL | let _ = macros::expr!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::stmt`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:22:5
|
|
|
|
|
LL | macros::stmt!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::pat`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:23:9
|
|
|
|
|
LL | let macros::pat!() = 1;
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::ty`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:24:12
|
|
|
|
|
LL | let _: macros::ty!() = "";
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::item`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:25:5
|
|
|
|
|
LL | macros::item!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::binop`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:26:13
|
|
|
|
|
LL | let _ = macros::binop!(1);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::attr`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:31:1
|
|
|
|
|
LL | / macros::attr! {
|
|
LL | | struct S;
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: use of a disallowed macro `macros::item`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:36:5
|
|
|
|
|
LL | macros::item!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::item`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:40:5
|
|
|
|
|
LL | macros::item!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `macros::item`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:44:5
|
|
|
|
|
LL | macros::item!();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: use of a disallowed macro `proc_macros::Derive`
|
|
--> tests/ui-toml/disallowed_macros/disallowed_macros.rs:47:10
|
|
|
|
|
LL | #[derive(Derive)]
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 16 previous errors
|
|
|