Skip to content

Better syntax checking on attributes #16974

Description

@kmcallister

For example, #![crate_type(lib)] produces

error: main function not found
error: aborting due to previous error

which is not a very good clue to the correct syntax #![crate_type="lib"].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions