2025-08-23 19:45:00 +02:00
|
|
|
warning: crate-level attribute should be an inner attribute
|
2024-10-16 01:35:01 -04:00
|
|
|
--> $DIR/linker-warning.rs:7:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[allow(linker_messages)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
|
--> $DIR/linker-warning.rs:3:9
|
|
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_attributes)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2025-08-23 19:45:00 +02:00
|
|
|
help: add a `!`
|
|
|
|
|
|
|
|
|
|
|
LL | #![allow(linker_messages)]
|
|
|
|
|
| +
|
2024-10-16 01:35:01 -04:00
|
|
|
|
|
|
|
|
warning: unused attribute
|
|
|
|
|
--> $DIR/linker-warning.rs:4:1
|
|
|
|
|
|
|
|
|
|
|
LL | #![allow(linker_messages)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
|
|
|
|
|
|
2025-02-27 16:36:20 +00:00
|
|
|
= note: the `linker_messages` lint can only be controlled at the root of a crate that needs to be linked
|
2024-10-16 01:35:01 -04:00
|
|
|
|
|
|
|
|
warning: 2 warnings emitted
|
|
|
|
|
|