parsers: allow all macro_rules! macros to be dead code

This helps the transition to using the derive macros, because we do not
have to remove the macro at the exact commit where it stops being used.
That gives us more flexibility about the order in which the MRs
transitioning the various modules are merged.
This commit is contained in:
Jonas Schäfer 2024-04-01 12:26:59 +02:00
parent 4374cabf44
commit 381cd40137
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,12 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#![allow(unused_macros)]
// ^ This helps the transition to using the derive macros, because we do not
// have to remove the macro at the exact commit where it stops being used.
// That gives us more flexibility about the order in which the MRs
// transitioning the various modules are merged.
// TODO: remove the above once the transition is done.
macro_rules! get_attr {
($elem:ident, $attr:tt, $type:tt) => {