File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ // force-host
2+ // no-prefer-dynamic
3+ #![ crate_type = "proc-macro" ]
4+
5+ extern crate proc_macro;
6+ use proc_macro:: TokenStream ;
7+
8+ #[ proc_macro_attribute]
9+ pub fn attr ( _args : TokenStream , input : TokenStream ) -> TokenStream {
10+ println ! ( "{}" , input) ;
11+ TokenStream :: new ( )
12+ }
Original file line number Diff line number Diff line change 1+ // aux-build:issue-60674.rs
2+ // compile-pass
3+ // edition:2018
4+ #![ feature( async_await) ]
5+
6+ // This is a regression test that ensures that `mut` patterns are not lost when provided as input
7+ // to a proc macro.
8+
9+ extern crate issue_60674;
10+
11+ #[ issue_60674:: attr]
12+ async fn f ( mut x : u8 ) { }
13+
14+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ async fn f(x: u8) { }
You can’t perform that action at this time.
0 commit comments