diff options
| author | bors <bors@rust-lang.org> | 2021-05-12 08:01:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-12 08:01:10 +0000 |
| commit | aa15a5442a975180a367373e563b7f8c626b5344 (patch) | |
| tree | 57359f3a59e7ef7dc6a3f616a092022d784e607e /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 0d4e24e73b28b33504df8daf1717e495f84fac40 (diff) | |
| parent | a988a90e112a68dd48222105f57556f97ea35fbd (diff) | |
| download | rust-aa15a5442a975180a367373e563b7f8c626b5344.tar.gz rust-aa15a5442a975180a367373e563b7f8c626b5344.zip | |
Auto merge of #7197 - xFrednet:4310-depreciated-lints-collection, r=flip1995
Metadata collection monster eating deprecated lints
This adds the collection of deprecated lints to the metadata collection monster. The JSON output has the same structure with the *new* lint group "DEPRECATED". Here is one of fourteen examples it was able to dig up in Clippy's code:
```JSON
{
"id": "assign_op_pattern",
"id_span": {
"path": "src/assign_ops.rs",
"line": 34
},
"group": "clippy::style",
"docs": " **What it does:** Checks for `a = a op b` or `a = b commutative_op a` patterns.\n\n **Why is this bad?** These can be written as the shorter `a op= b`.\n\n **Known problems:** While forbidden by the spec, `OpAssign` traits may have\n implementations that differ from the regular `Op` impl.\n\n **Example:**\n ```rust\n let mut a = 5;\n let b = 0;\n // ...\n // Bad\n a = a + b;\n\n // Good\n a += b;\n ```\n",
"applicability": {
"is_multi_part_suggestion": false,
"applicability": "MachineApplicable"
}
}
```
And you! Yes you! Sir or Madam can get all of this **for free** in Clippy if this PR gets merged. (Sorry for the silliness ^^)
---
See: #7172 for the full metadata collection to-do list or to suggest a new feature in connection to it :upside_down_face:
---
changelog: none
r? `@flip1995`
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
