]>
Commit | Line | Data |
---|---|---|
83c7162d | 1 | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT |
223e47cc LB |
2 | // file at the top-level directory of this distribution and at |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
83c7162d XL |
11 | // no-prefer-dynamic |
12 | // force-host | |
7cac9316 | 13 | |
83c7162d | 14 | #![crate_type = "proc-macro"] |
7cac9316 | 15 | |
83c7162d | 16 | extern crate proc_macro; |
041b39d2 | 17 | |
83c7162d | 18 | use proc_macro::*; |
7cac9316 | 19 | |
83c7162d XL |
20 | #[proc_macro] |
21 | pub fn m(a: TokenStream) -> TokenStream { | |
22 | a | |
23 | } | |
a7813a04 | 24 | |
83c7162d XL |
25 | #[proc_macro_attribute] |
26 | pub fn a(_a: TokenStream, b: TokenStream) -> TokenStream { | |
27 | b | |
54a0048b | 28 | } |