| Age | Commit message (Collapse) | Author | Lines |
|
Add a new lint `doc_overindented_list_items` to detect and fix list items
in docs that are overindented.
For example,
```rs
/// - first line
/// second line
fn foo() {}
```
this would be fixed to:
```rs
/// - first line
/// second line
fn foo() {}
```
This lint improves readabiliy and consistency in doc.
|
|
|
|
|
|
|
|
new lint: `option_as_ref_cloned`
Closes #12009
Adds a new lint that looks for `.as_ref().cloned()` on `Option`s. That's the same as just `.clone()`-ing the option directly.
changelog: new lint: [`option_as_ref_cloned`]
|
|
|
|
|
|
|
|
|
|
|
|
A few minor cleanups in various markdown files, mostly focusing on spelling and ignoring non-compilable codeblocks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It looks like after changing to "there are more than 120 lints", an older PR was merged
and resolving merge conflicts this was changed back to "there are 123 lints" causing the update-script to silently fail.
Changed back the README.md back to the new format fixes the problem.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Deprecate REPLACE_CONSTS lint
Closes #5346
changelog: Deprecate `replace_consts` lint
|
|
lints" section.
|