Skip to content

provide suggestions for typoed attributes #49270

Closed
@matthiaskrgr

Description

@matthiaskrgr
#[marco_use]
extern crate clap

It would be nice to have typo suggestions for mistyped attributes.
Maybe something like

 --> src/main.rs:1:1
  |
1 | #[marco_use]
  | ^^^^^^^^^^^^
  |
  = help: add #![feature(custom_attribute)] to the crate attributes to enable
  = help: you could try the attribute 'macro_use'

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.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