diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-02-14 20:45:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 20:45:15 +0100 |
commit | 3379a90a2d88c7d6333d64fe33ea1bd992904c71 (patch) | |
tree | aaa7fb15b9216c015afdbb8ae1690ca57535d59c /src/codegen/impl_partialeq.rs | |
parent | 8c5f862f828b1f85eb29a4159c0f9237ac473fbf (diff) | |
parent | ad6b2231924da983ad818068413c61979bf95ac7 (diff) |
Merge pull request #1256 from fitzgen/fix-missing-dylibs. r=emilio
Fix missing dylibs
Diffstat (limited to 'src/codegen/impl_partialeq.rs')
-rw-r--r-- | src/codegen/impl_partialeq.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen/impl_partialeq.rs b/src/codegen/impl_partialeq.rs index 155f8741..02783808 100644 --- a/src/codegen/impl_partialeq.rs +++ b/src/codegen/impl_partialeq.rs @@ -4,7 +4,6 @@ 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. @@ -72,7 +71,7 @@ pub fn gen_partialeq_impl( } fn gen_field(ctx: &BindgenContext, ty_item: &Item, name: &str) -> quote::Tokens { - fn quote_equals(name_ident: proc_macro2::Term) -> quote::Tokens { + fn quote_equals(name_ident: quote::Ident) -> quote::Tokens { quote! { self.#name_ident == other.#name_ident } } |