blob: 7f0b0f0327e4ecee4e24b6c84d6be4218cf744dd [file]
error: `#[cold]` attribute cannot be used on required trait methods
--> $DIR/codegen_attr_on_required_trait_method.rs:6:5
|
LL | #[cold]
| ^^^^^^^
|
= help: `#[cold]` can be applied to foreign functions and functions with a body
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
note: the lint level is defined here
--> $DIR/codegen_attr_on_required_trait_method.rs:1:9
|
LL | #![deny(unused_attributes)]
| ^^^^^^^^^^^^^^^^^
error: `#[link_section]` attribute cannot be used on required trait methods
--> $DIR/codegen_attr_on_required_trait_method.rs:10:5
|
LL | #[link_section = "__TEXT,__text"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `#[link_section]` can be applied to functions with a body and statics
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
error: `#[linkage]` attribute cannot be used on required trait methods
--> $DIR/codegen_attr_on_required_trait_method.rs:14:5
|
LL | #[linkage = "common"]
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: `#[linkage]` can be applied to foreign functions, foreign statics, functions with a body, and statics
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
error: aborting due to 3 previous errors