Move mini-macro to proc macro
We can add a bang-style proc macro again once it stabilizes (we can use the proc macro hack, but it's unnecessary for now)
This commit is contained in:
parent
cf58e1c672
commit
775372db90
4 changed files with 20 additions and 44 deletions
|
|
@ -1,8 +1,12 @@
|
|||
#![feature(plugin)]
|
||||
#![plugin(clippy_mini_macro_test)]
|
||||
#[macro_use]
|
||||
extern crate clippy_mini_macro_test;
|
||||
|
||||
#[deny(warnings)]
|
||||
#[mini_macro_attr]
|
||||
fn main() {
|
||||
let _ = mini_macro!();
|
||||
let x = Foo;
|
||||
println!("{:?}", x);
|
||||
}
|
||||
|
||||
|
||||
#[derive(ClippyMiniMacroTest, Debug)]
|
||||
struct Foo;
|
||||
Loading…
Add table
Add a link
Reference in a new issue