rust/tests/ui/lint/redundant-semicolon/auxiliary/redundant-semi-proc-macro-def.rs
2024-02-16 20:02:50 +00:00

13 lines
312 B
Rust

//@ force-host
//@ no-prefer-dynamic
#![crate_type="proc-macro"]
#![crate_name="redundant_semi_proc_macro"]
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn should_preserve_spans(_attr: TokenStream, item: TokenStream) -> TokenStream {
eprintln!("{:?}", item);
item
}