86 lines
3.9 KiB
Text
86 lines
3.9 KiB
Text
error[E0539]: malformed `link` attribute input
|
|
--> $DIR/malformed-regressions.rs:8:1
|
|
|
|
|
LL | #[link]
|
|
| ^^^^^^^ expected this to be a list
|
|
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
|
|
|
|
error[E0539]: malformed `link` attribute input
|
|
--> $DIR/malformed-regressions.rs:11:1
|
|
|
|
|
LL | #[link = ""]
|
|
| ^^^^^^^----^
|
|
| |
|
|
| expected this to be a list
|
|
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
--> $DIR/malformed-regressions.rs:8:1
|
|
|
|
|
LL | #[link]
|
|
| ^^^^^^^
|
|
...
|
|
LL | fn main() {}
|
|
| ------------ not an `extern` block
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: requested on the command line with `-W unused-attributes`
|
|
|
|
error: valid forms for the attribute are `#[doc = "string"]`, `#[doc(alias)]`, `#[doc(attribute)]`, `#[doc(auto_cfg)]`, `#[doc(cfg)]`, `#[doc(fake_variadic)]`, `#[doc(hidden)]`, `#[doc(html_favicon_url)]`, `#[doc(html_logo_url)]`, `#[doc(html_no_source)]`, `#[doc(html_playground_url)]`, `#[doc(html_root_url)]`, `#[doc(include)]`, `#[doc(inline)]`, `#[doc(issue_tracker_base_url)]`, `#[doc(keyword)]`, `#[doc(masked)]`, `#[doc(no_default_passes)]`, `#[doc(no_inline)]`, `#[doc(notable_trait)]`, `#[doc(passes)]`, `#[doc(plugins)]`, `#[doc(rust_logo)]`, `#[doc(search_unbox)]`, `#[doc(spotlight)]`, and `#[doc(test)]`
|
|
--> $DIR/malformed-regressions.rs:3:1
|
|
|
|
|
LL | #[doc]
|
|
| ^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/malformed-regressions.rs:1:9
|
|
|
|
|
LL | #![deny(invalid_doc_attributes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
|
|
--> $DIR/malformed-regressions.rs:4:1
|
|
|
|
|
LL | #[ignore()]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
|
|
= note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default
|
|
|
|
error: valid forms for the attribute are `#[inline(always)]`, `#[inline(never)]`, and `#[inline]`
|
|
--> $DIR/malformed-regressions.rs:6:1
|
|
|
|
|
LL | #[inline = ""]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
|
|
|
|
error: aborting due to 5 previous errors; 1 warning emitted
|
|
|
|
For more information about this error, try `rustc --explain E0539`.
|
|
Future incompatibility report: Future breakage diagnostic:
|
|
error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
|
|
--> $DIR/malformed-regressions.rs:4:1
|
|
|
|
|
LL | #[ignore()]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
|
|
= note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default
|
|
|
|
Future breakage diagnostic:
|
|
error: valid forms for the attribute are `#[inline(always)]`, `#[inline(never)]`, and `#[inline]`
|
|
--> $DIR/malformed-regressions.rs:6:1
|
|
|
|
|
LL | #[inline = ""]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
|
|
= note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default
|
|
|