Files
rust/tests/ui/proc-macro/auxiliary/api/proc_macro_api_tests.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
350 B
Rust
Raw Normal View History

//@ edition: 2021
2021-04-29 11:17:44 -07:00
#![feature(proc_macro_span)]
#![deny(dead_code)] // catch if a test function is never called
extern crate proc_macro;
2021-04-29 11:17:44 -07:00
mod cmp;
mod literal;
2021-04-29 11:17:44 -07:00
use proc_macro::TokenStream;
#[proc_macro]
pub fn run(input: TokenStream) -> TokenStream {
assert!(input.is_empty());
2021-04-29 12:03:35 -07:00
2021-04-29 11:17:44 -07:00
cmp::test();
literal::test();
2021-04-29 12:03:35 -07:00
TokenStream::new()
}