about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Burka <alex@alexburka.com>2017-04-02 04:46:51 +0000
committerAlex Burka <alex@alexburka.com>2017-04-15 19:06:19 +0000
commit16010c2f50dd92cc57ccced270a9fb727d6d4883 (patch)
treef3a33acda26d3b24bca3932ffe63c3ecea020718 /src/test
parent06411c47694916aaf22ef30b6b8877d7659b2002 (diff)
downloadrust-16010c2f50dd92cc57ccced270a9fb727d6d4883.tar.gz
rust-16010c2f50dd92cc57ccced270a9fb727d6d4883.zip
parse interpolated visibility tokens
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/macro-pub-matcher.rs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/test/run-pass/macro-pub-matcher.rs b/src/test/run-pass/macro-pub-matcher.rs
index 7de9cc6bf21..d5b25e6cdf2 100644
--- a/src/test/run-pass/macro-pub-matcher.rs
+++ b/src/test/run-pass/macro-pub-matcher.rs
@@ -1,3 +1,13 @@
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #![allow(dead_code, unused_imports)]
 
 /**
@@ -96,11 +106,13 @@ macro_rules! vis_parse_struct {
         vis_parse_struct! { @parse_tuple $(#[$($attrs)*])*, , $name, $($body)* }
     };
 
-    (@parse_fields $(#[$attrs:meta])*, $vis:vis, $name:ident, $($fvis:vis $fname:ident: $fty:ty),* $(,)*) => {
+    (@parse_fields
+     $(#[$attrs:meta])*, $vis:vis, $name:ident, $($fvis:vis $fname:ident: $fty:ty),* $(,)*) => {
         $(#[$attrs])* $vis struct $name { $($fvis $fname: $fty,)* }
     };
 
-    (@parse_tuple $(#[$attrs:meta])*, $vis:vis, $name:ident, $($fvis:vis $fty:ty),* $(,)*) => {
+    (@parse_tuple
+     $(#[$attrs:meta])*, $vis:vis, $name:ident, $($fvis:vis $fty:ty),* $(,)*) => {
         $(#[$attrs])* $vis struct $name ( $($fvis $fty,)* );
     };
 }