Skip to content

Support emitting warning/help/note diagnostics #16

Description

@dhardy

This is unfortunately requires an unstable feature: see rust-lang/rust#54140

In other crates:

  • proc-macro-error emits such diagnostics on nightly but silently ignores them on stable
  • proc-macro2-diagnostics converts such diagnostics to errors when not on nightly. (Unfortunately it has a poor design for emitting a non-fatal diagnostic and continuing macro parsing/expansion.)

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions