Skip to content

Commit

Permalink
allow dead_code for traits in the hygiene test
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Jun 22, 2024
1 parent cb06788 commit 17118c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/hygiene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(non_camel_case_types)]

macro_rules! decl_primitives_as_traits {
($($primitive:ident),*) => {$(trait $primitive {})*};
($($primitive:ident),*) => {$(#[allow(dead_code)] trait $primitive {})*};
}

// from core::primitive
Expand Down

0 comments on commit 17118c9

Please sign in to comment.