Support generic type
This commit is contained in:
parent
16e53c9868
commit
8cb2ec804d
9 changed files with 43 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue