2021-07-14 19:51:45 -05:00
|
|
|
warning: unused attribute `inline`
|
2025-03-21 18:14:27 +03:00
|
|
|
--> $DIR/inert-attr-macro.rs:11:5
|
2021-07-14 19:51:45 -05:00
|
|
|
|
|
|
|
|
|
LL | #[inline] foo!();
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
note: the built-in attribute `inline` will be ignored, since it's applied to the macro invocation `foo`
|
2025-03-21 18:14:27 +03:00
|
|
|
--> $DIR/inert-attr-macro.rs:11:15
|
2022-09-18 19:55:36 +04:00
|
|
|
|
|
|
|
|
|
LL | #[inline] foo!();
|
|
|
|
|
| ^^^
|
2021-07-14 19:51:45 -05:00
|
|
|
note: the lint level is defined here
|
2025-03-21 18:14:27 +03:00
|
|
|
--> $DIR/inert-attr-macro.rs:4:9
|
2021-07-14 19:51:45 -05:00
|
|
|
|
|
|
|
|
|
LL | #![warn(unused)]
|
|
|
|
|
| ^^^^^^
|
|
|
|
|
= note: `#[warn(unused_attributes)]` implied by `#[warn(unused)]`
|
|
|
|
|
|
|
|
|
|
warning: unused attribute `allow`
|
2025-03-21 18:14:27 +03:00
|
|
|
--> $DIR/inert-attr-macro.rs:15:5
|
2021-07-14 19:51:45 -05:00
|
|
|
|
|
|
|
|
|
LL | #[allow(warnings)] #[inline] foo!();
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
note: the built-in attribute `allow` will be ignored, since it's applied to the macro invocation `foo`
|
2025-03-21 18:14:27 +03:00
|
|
|
--> $DIR/inert-attr-macro.rs:15:34
|
2021-07-14 19:51:45 -05:00
|
|
|
|
|
|
|
|
|
LL | #[allow(warnings)] #[inline] foo!();
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
warning: unused attribute `inline`
|
2025-03-21 18:14:27 +03:00
|
|
|
--> $DIR/inert-attr-macro.rs:15:24
|
2021-07-14 19:51:45 -05:00
|
|
|
|
|
|
|
|
|
LL | #[allow(warnings)] #[inline] foo!();
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
note: the built-in attribute `inline` will be ignored, since it's applied to the macro invocation `foo`
|
2025-03-21 18:14:27 +03:00
|
|
|
--> $DIR/inert-attr-macro.rs:15:34
|
2021-07-14 19:51:45 -05:00
|
|
|
|
|
|
|
|
|
LL | #[allow(warnings)] #[inline] foo!();
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
warning: 3 warnings emitted
|
|
|
|
|
|