16 lines
316 B
Rust
16 lines
316 B
Rust
|
// force-host
|
||
|
// no-prefer-dynamic
|
||
|
|
||
|
#![crate_type = "proc-macro"]
|
||
|
#![crate_name = "macro_dump_debug"]
|
||
|
|
||
|
extern crate proc_macro;
|
||
|
use proc_macro::TokenStream;
|
||
|
|
||
|
#[proc_macro]
|
||
|
pub fn dump_debug(tokens: TokenStream) -> TokenStream {
|
||
|
eprintln!("{:?}", tokens);
|
||
|
eprintln!("{:#?}", tokens);
|
||
|
TokenStream::new()
|
||
|
}
|