Closed
Description
#[link(name = "c", cfg(yes))]
extern {}
error[E0658]: is unstable
--> src/lib.rs:1:1
|
1 | #[link(name = "c", cfg(yes))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/37406
🤔
In addition to the malformed diagnostic, the tracking issue has been closed already. According to https://rust-lang.github.io/rfcs/1721-crt-static.html#lazy-link-attributes, this is supposed to be a permanently-unstable implementation detail. In that case, should the link be updated to point somewhere else?
This issue has been assigned to @Rustin-Liu via this comment.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: linking into static, shared libraries and binariesArea: `#[stable]`, `#[unstable]` etc.Category: This is a bug.Diagnostics: An error or lint that needs small tweaks.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Relevant to the compiler team, which will review and decide on the PR/issue.