]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #40129 - abonander:proc_macro_bang, r=jseyfried
authorCorey Farwell <coreyf@rwell.org>
Thu, 2 Mar 2017 19:53:46 +0000 (14:53 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 19:53:46 +0000 (14:53 -0500)
Implement function-like procedural macros ( `#[proc_macro]`)

Adds the `#[proc_macro]` attribute, which expects bare functions of the kind `fn(TokenStream) -> TokenStream`, which can be invoked like `my_macro!()`.

cc rust-lang/rfcs#1913, #38356

r? @jseyfried
cc @nrc

1  2 
src/libproc_macro/lib.rs
src/libsyntax/feature_gate.rs

Simple merge
Simple merge