Support generic type

This commit is contained in:
sinkuu 2017-02-17 19:59:52 +09:00
parent 16e53c9868
commit 8cb2ec804d
9 changed files with 43 additions and 17 deletions

View file

@ -420,7 +420,7 @@ fn check_to_owned(cx: &LateContext, expr: &Expr, other: &Expr, left: bool, op: S
None => return,
};
if !implements_trait(cx, arg_ty, partial_eq_trait_id, vec![other_ty]) {
if !implements_trait(cx, arg_ty, partial_eq_trait_id, &[other_ty], None) {
return;
}