mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
24 lines
461 B
Rust
24 lines
461 B
Rust
|
#![warn(clippy::missing_inline_in_public_items)]
|
||
|
#![crate_type = "proc-macro"]
|
||
|
|
||
|
extern crate proc_macro;
|
||
|
|
||
|
use proc_macro::TokenStream;
|
||
|
|
||
|
fn _foo() {}
|
||
|
|
||
|
#[proc_macro]
|
||
|
pub fn function_like(_: TokenStream) -> TokenStream {
|
||
|
TokenStream::new()
|
||
|
}
|
||
|
|
||
|
#[proc_macro_attribute]
|
||
|
pub fn attribute(_: TokenStream, _: TokenStream) -> TokenStream {
|
||
|
TokenStream::new()
|
||
|
}
|
||
|
|
||
|
#[proc_macro_derive(Derive)]
|
||
|
pub fn derive(_: TokenStream) -> TokenStream {
|
||
|
TokenStream::new()
|
||
|
}
|