Merge branch 'macro' into 'main'

Suppress new "unused_macro_rules" lint in one place

See merge request tpo/core/arti!544
This commit is contained in:
Nick Mathewson 2022-05-27 17:20:13 +00:00
commit 75f968017d
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
//! Declares macros to help implementing parsers.
#![allow(unknown_lints)]
/// Macro for declaring a keyword enumeration to help parse a document.
///
/// A keyword enumeration implements the Keyword trait.
@ -21,6 +23,7 @@
/// assert_eq!(Location::from_str("start"), Location::START);
/// assert_eq!(Location::from_str("stfff"), Location::UNRECOGNIZED);
/// ```
#[allow(unused_macro_rules)]
macro_rules! decl_keyword {
{ $(#[$meta:meta])* $v:vis
$name:ident { $( $($anno:ident)? $($s:literal)|+ => $i:ident),* $(,)? } } => {