Merge pull request #585 from geofft/parse_derive_input

procedural-macros: Rename parse_macro_input to parse_derive_input
This commit is contained in:
Carol (Nichols || Goulding)
2017-03-31 09:52:53 -04:00
committed by GitHub

View File

@@ -115,7 +115,7 @@ pub fn hello_world(input: TokenStream) -> TokenStream {
let s = input.to_string();
// Parse the string representation
let ast = syn::parse_macro_input(&s).unwrap();
let ast = syn::parse_derive_input(&s).unwrap();
// Build the impl
let gen = impl_hello_world(&ast);