Special case for 'static fields

This commit is contained in:
David Tolnay
2017-09-09 11:34:08 -07:00
parent c3eced410f
commit 0085d05e55
3 changed files with 112 additions and 48 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ use internals::attr;
macro_rules! path {
($($path:tt)+) => {
syn::parse_path(stringify!($($path)+)).unwrap()
syn::parse_path(quote!($($path)+).as_str()).unwrap()
};
}