Skip to content

Commit

Permalink
Merge pull request #1602 from dtolnay/deadcode
Browse files Browse the repository at this point in the history
Suppress dead code lint on custom token's span field
  • Loading branch information
dtolnay authored Mar 24, 2024
2 parents e4f3216 + 2ddfdc6 commit c218a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/custom_keyword.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ macro_rules! custom_keyword {
($ident:ident) => {
#[allow(non_camel_case_types)]
pub struct $ident {
#[allow(dead_code)]
pub span: $crate::__private::Span,
}

Expand Down
1 change: 1 addition & 0 deletions src/custom_punctuation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
macro_rules! custom_punctuation {
($ident:ident, $($tt:tt)+) => {
pub struct $ident {
#[allow(dead_code)]
pub spans: $crate::custom_punctuation_repr!($($tt)+),
}

Expand Down

0 comments on commit c218a35

Please sign in to comment.