Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Ignore buggy nonstandard_macro_braces clippy lint
Browse files Browse the repository at this point in the history
Clippy bug: rust-lang/rust-clippy#7422

    error: use of irregular braces for `vec!` macro
     --> demo-hack-impl/src/lib.rs:6:1
      |
    6 | #[proc_macro_hack]
      | ^^^^^^^^^^^^^^^^^^
      |
      = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all`
    help: consider writing `#[proc_macro_hack]`
     --> demo-hack-impl/src/lib.rs:6:1
      |
    6 | #[proc_macro_hack]
      | ^^^^^^^^^^^^^^^^^^
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
      = note: this error originates in the attribute macro `proc_macro_hack` (in Nightly builds, run with -Z macro-backtrace for more info)
  • Loading branch information
dtolnay committed Jul 3, 2021
1 parent d8069c6 commit bca911a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo-hack-impl/src/lib.rs
@@ -1,3 +1,8 @@
#![allow(
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
clippy::nonstandard_macro_braces,
)]

use proc_macro::TokenStream;
use proc_macro_hack::proc_macro_hack;
use quote::quote;
Expand Down

0 comments on commit bca911a

Please sign in to comment.