Fix a hygiene issue with me

This commit is contained in:
Alex Crichton 2017-12-18 15:54:43 -08:00
parent ac1acf55ac
commit d38a448f15

View File

@ -317,7 +317,7 @@ impl ToTokens for Receiver {
name.to_tokens(tokens);
}
Receiver::StructMethod(_, mutable, name) => {
syn::Ident::from("me").to_tokens(tokens);
(my_quote! { me }).to_tokens(tokens);
syn::tokens::Dot::default().to_tokens(tokens);
if mutable {
syn::Ident::from("borrow_mut").to_tokens(tokens);