Skip to content

Odd "error[E0658]: is unstable" diagnostic #70538

Closed

Description

@jonas-schievink
#[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.

Activity

  1. added
    A-linkageArea: linking into static, shared libraries and binaries
    A-diagnosticsArea: Messages for errors, warnings, and lints
    A-stabilityArea: `#[stable]`, `#[unstable]` etc.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    on Mar 29, 2020
  2. added a commit that references this issue on Mar 29, 2020
  3. added
    D-papercutDiagnostics: An error or lint that needs small tweaks.
    on Mar 30, 2020
  4. estebank commented on Mar 30, 2020

    @estebank
    Contributor

    The wording can be easily fixed at

    feature_err(&self.tcx.sess.parse_sess, sym::link_cfg, span.unwrap(), "is unstable")
    .

    The link can't be changed to a non-issue because of how the machinery is currently set up, but we can update the description of the ticket to point at RFC 1721.

  5. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    on Mar 30, 2020
  6. 0xPoe commented on Mar 31, 2020

    @0xPoe
    Member

    @rustbot claim

  7. self-assigned this
    on Mar 31, 2020
  8. added a commit that references this issue on Apr 3, 2020
    17a59fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-linkageArea: linking into static, shared libraries and binariesA-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.D-papercutDiagnostics: An error or lint that needs small tweaks.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions