Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: 9907b90
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Dec 16, 2023
1 parent 222a91c commit 81e34ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions master/lints.json
Original file line number Diff line number Diff line change
Expand Up @@ -9271,6 +9271,21 @@
"applicability": "MachineApplicable"
}
},
{
"id": "unconditional_recursion",
"id_span": {
"path": "src/unconditional_recursion.rs",
"line": 39
},
"group": "suspicious",
"level": "warn",
"docs": "\n### What it does\nChecks that there isn't an infinite recursion in `PartialEq` trait\nimplementation.\n\n### Why is this bad?\nThis is a hard to find infinite recursion which will crashing any code\nusing it.\n\n### Example\n```rust\nenum Foo {\n A,\n B,\n}\n\nimpl PartialEq for Foo {\n fn eq(&self, other: &Self) -> bool {\n self == other // bad!\n }\n}\n```\nUse instead:\n\nIn such cases, either use `#[derive(PartialEq)]` or don't implement it.",
"version": "1.76.0",
"applicability": {
"is_multi_part_suggestion": false,
"applicability": "Unresolved"
}
},
{
"id": "undocumented_unsafe_blocks",
"id_span": {
Expand Down

0 comments on commit 81e34ee

Please sign in to comment.