From c2e4a609a015fd6f494c0df119dd2ca3a5d3cb4b Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Fri, 9 Mar 2018 10:31:20 +0100 Subject: [PATCH] Don't generate fancy Clone + PartialEq bounds for #[animation(constant)] --- components/style_derive/animate.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/components/style_derive/animate.rs b/components/style_derive/animate.rs index 7543f7b7b12..912f7dbc9f2 100644 --- a/components/style_derive/animate.rs +++ b/components/style_derive/animate.rs @@ -71,24 +71,6 @@ fn derive_variant_arm( computations.append_all(iter.map(|(result, (this, other))| { let field_attrs = cg::parse_field_attrs::(&result.ast()); if field_attrs.constant { - if cg::is_parameterized(&result.ast().ty, &where_clause.params, None) { - cg::add_predicate( - &mut where_clause.inner, - cg::where_predicate( - result.ast().ty.clone(), - &parse_quote!(std::cmp::PartialEq), - None, - ), - ); - cg::add_predicate( - &mut where_clause.inner, - cg::where_predicate( - result.ast().ty.clone(), - &parse_quote!(std::clone::Clone), - None, - ), - ); - } quote! { if #this != #other { return Err(());