diff options
author | Bastien Orivel <eijebong@bananium.fr> | 2018-01-23 00:12:58 +0100 |
---|---|---|
committer | Bastien Orivel <eijebong@bananium.fr> | 2018-01-23 00:40:19 +0100 |
commit | 6899c275ee0ab0687ec66c490ddd1a76f8223513 (patch) | |
tree | 685f5d7357e6bd11548e765d4a8d98580ef44b90 /src/codegen/impl_partialeq.rs | |
parent | b3712248c59f8f4dca80fd92d1ad9cb40149a8cc (diff) |
Bump quote to 0.4
Diffstat (limited to 'src/codegen/impl_partialeq.rs')
-rw-r--r-- | src/codegen/impl_partialeq.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codegen/impl_partialeq.rs b/src/codegen/impl_partialeq.rs index 02783808..155f8741 100644 --- a/src/codegen/impl_partialeq.rs +++ b/src/codegen/impl_partialeq.rs @@ -4,6 +4,7 @@ use ir::context::BindgenContext; use ir::item::{IsOpaque, Item}; use ir::ty::{TypeKind, RUST_DERIVE_IN_ARRAY_LIMIT}; use quote; +use proc_macro2; /// Generate a manual implementation of `PartialEq` trait for the /// specified compound type. @@ -71,7 +72,7 @@ pub fn gen_partialeq_impl( } fn gen_field(ctx: &BindgenContext, ty_item: &Item, name: &str) -> quote::Tokens { - fn quote_equals(name_ident: quote::Ident) -> quote::Tokens { + fn quote_equals(name_ident: proc_macro2::Term) -> quote::Tokens { quote! { self.#name_ident == other.#name_ident } } |