Skip to content

Commit 6a6a113

Browse files
authored
chore: fix foundry-macros warnings (#11303)
1 parent cb8364d commit 6a6a113

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/macros/src/cheatcodes.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ use proc_macro2::{Ident, Span, TokenStream};
22
use quote::quote;
33
use syn::{Attribute, Data, DataStruct, DeriveInput, Error, Result};
44

5+
// TODO: `proc_macro_error2` only emits warnings when feature "nightly" is enabled, which we can't
6+
// practically enable.
7+
macro_rules! emit_warning {
8+
($($t:tt)*) => {
9+
proc_macro_error2::emit_error! { $($t)* }
10+
};
11+
}
12+
513
pub fn derive_cheatcode(input: &DeriveInput) -> Result<TokenStream> {
614
let name = &input.ident;
715
let name_s = name.to_string();

0 commit comments

Comments
 (0)