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:
commit
75f968017d
|
@ -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),* $(,)? } } => {
|
||||
|
|
Loading…
Reference in New Issue