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:
Manish Goregaokar 2017-12-20 08:16:43 -08:00
parent cf58e1c672
commit 775372db90
4 changed files with 20 additions and 44 deletions

View file

@ -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;