Skip to content

rust emits a warning at line 0 when compiling an empty proc-macro crate #47692

Closed
@Eijebong

Description

@Eijebong

Steps to reproduce:

  • Create a new crate
  • Set it as proc-macro = true
  • Empty the src/lib.rs file
  • Compile
  • Profit
warning: unused variable: `registrar`
--> src/lib.rs:0:1
 |
 |
 = note: #[warn(unused_variables)] on by default
 = note: to avoid this warning, consider using `_registrar` instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    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