mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-16 08:18:18 +00:00
28 lines
528 B
Rust
28 lines
528 B
Rust
// force-host
|
|
// no-prefer-dynamic
|
|
// edition: 2021
|
|
|
|
#![crate_type = "proc-macro"]
|
|
#![crate_name = "proc_macro_api_tests"]
|
|
#![feature(proc_macro_span)]
|
|
#![feature(proc_macro_byte_character)]
|
|
#![feature(proc_macro_c_str_literals)]
|
|
#![deny(dead_code)] // catch if a test function is never called
|
|
|
|
extern crate proc_macro;
|
|
|
|
mod cmp;
|
|
mod parse;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro]
|
|
pub fn run(input: TokenStream) -> TokenStream {
|
|
assert!(input.is_empty());
|
|
|
|
cmp::test();
|
|
parse::test();
|
|
|
|
TokenStream::new()
|
|
}
|