mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Merge pull request #290 from Manishearth/float-cmp
also ignore `ne` functions
This commit is contained in:
+5
-2
@@ -98,8 +98,11 @@ fn check_expr(&mut self, cx: &Context, expr: &Expr) {
|
||||
Some(NodeTraitItem(&TraitItem{ id: _, ref ident, .. })) |
|
||||
Some(NodeImplItem(&ImplItem{ id: _, ref ident, .. })) => {
|
||||
let name = ident.name.as_str();
|
||||
if &*name == "eq" || name.starts_with("eq_") ||
|
||||
name.ends_with("_eq") { return; }
|
||||
if &*name == "eq" || &*name == "ne" ||
|
||||
name.starts_with("eq_") ||
|
||||
name.ends_with("_eq") {
|
||||
return;
|
||||
}
|
||||
},
|
||||
_ => (),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user