From 381cd40137f52f199e2bff23281d767dca38cb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Mon, 1 Apr 2024 12:26:59 +0200 Subject: [PATCH] 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. --- parsers/src/util/macros.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/parsers/src/util/macros.rs b/parsers/src/util/macros.rs index 2917307..f543d0a 100644 --- a/parsers/src/util/macros.rs +++ b/parsers/src/util/macros.rs @@ -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) => {