mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 10:03:37 +00:00
47 lines
542 B
Rust
47 lines
542 B
Rust
#[macro_export]
|
|
macro_rules! expr {
|
|
() => {
|
|
1
|
|
};
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! stmt {
|
|
() => {
|
|
let _x = ();
|
|
};
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! ty {
|
|
() => { &'static str };
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! pat {
|
|
() => {
|
|
_
|
|
};
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! item {
|
|
() => {
|
|
const ITEM: usize = 1;
|
|
};
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! binop {
|
|
($t:tt) => {
|
|
$t + $t
|
|
};
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! attr {
|
|
($i:item) => {
|
|
#[repr(C)]
|
|
$i
|
|
};
|
|
}
|