Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy subtree update #126398

Merged
merged 117 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
cf0b55e
Add `needless_maybe_sized` lint
Alexendoo Apr 11, 2023
334bab2
[`overly_complex_bool_expr`]: Fix trigger wrongly on never type
Luv-Ray Apr 21, 2024
e604043
Swap `for_each_expr` and `for_each_expr_with_closures`
Alexendoo May 17, 2024
68e7356
Switch to `for_each_expr` in some lints
Alexendoo May 19, 2024
9e5523e
lint_groups_priority: ignore lints & groups at the same level
Alexendoo May 20, 2024
95b295d
Fix `to_string_in_format_args` with macro call receiver
Alexendoo May 24, 2024
93a77f2
[`nonminimal_bool`]: Deduplicate diagnostics
cookie-s May 25, 2024
b6350e9
[`nonminimal_bool`]: Remove NotSimplificationVisitor
cookie-s May 25, 2024
c53cea9
fix: let non_canonical_impls skip proc marco
WeiTheShinobi May 26, 2024
566dfd9
Add `needless_character_iteration` lint
GuillaumeGomez May 17, 2024
4dcab72
add test for *&[a, b,...]`
tesuji May 29, 2024
db30f6c
fix [`redundant_closure`] suggesting incorrect code with `F: Fn()`
J-ZhengLi May 29, 2024
7f66e56
Don't require `visit_body` to take a lifetime that must outlive the f…
oli-obk May 29, 2024
f44a6a7
Make `body_owned_by` return the body directly.
oli-obk May 29, 2024
d38920f
ast: Revert a breaking attribute visiting order change
petrochenkov May 29, 2024
8bd2a17
ignore array from `deref_addrof` lint
tesuji May 29, 2024
8299d49
Auto merge of #125711 - oli-obk:const_block_ice2, r=Nadrieril
bors May 30, 2024
e2e5731
Rollup merge of #125711 - oli-obk:const_block_ice2, r=Nadrieril
matthiaskrgr May 30, 2024
f67f726
Merge commit 'c9139bd546d9cd69df817faeab62c5f9b1a51337' into clippy-s…
flip1995 May 30, 2024
b7a6c2d
Auto merge of #125761 - matthiaskrgr:rollup-7u082og, r=matthiaskrgr
bors May 30, 2024
03654ba
Auto merge of #12864 - tesuji:non-no-effect, r=y21
bors May 30, 2024
93b39d8
disable indexing_slicing for custom Index impls
Jacherr Mar 15, 2024
46b3264
add backticks to doc comments
Jacherr Mar 15, 2024
e186ed2
check return type of get and indexing
Jacherr Mar 19, 2024
ae59f50
add additional testcases
Jacherr Mar 27, 2024
1c117f1
ignore generics in handling
Jacherr May 30, 2024
b92501f
chore: fix some comments
VitalikButerinEth May 30, 2024
1038927
fix: add test case, use a better conditional expression.
WeiTheShinobi May 30, 2024
e7efe43
Auto merge of #12857 - WeiTheShinobi:non_canonical_impls, r=y21
bors May 30, 2024
51347ba
Auto merge of #125764 - flip1995:clippy-subtree-update, r=Manishearth
bors May 30, 2024
040edea
Rename HIR `TypeBinding` to `AssocItemConstraint` and related cleanup
fmease May 27, 2024
febfa51
Rollup merge of #125635 - fmease:mv-type-binding-assoc-item-constrain…
matthiaskrgr May 31, 2024
0b598b6
Auto merge of #12865 - J-ZhengLi:issue12853, r=y21
bors May 31, 2024
28e887f
Auto merge of #12488 - Jacherr:issue-11525, r=llogiq
bors May 31, 2024
5d0fcfb
modify str_to_string to be machine-applicable
Jacherr May 30, 2024
436675b
Auto merge of #12868 - VitalikButerinEth:master, r=llogiq
bors Jun 1, 2024
4aa20d2
deprecate `maybe_misused_cfg`
y21 Jun 1, 2024
2334264
Deduplicate supertrait_def_ids code
Mark-Simulacrum Apr 27, 2024
f950961
deprecate `mismatched_target_os`
y21 Jun 1, 2024
5a44877
Uplift TypeRelation and Relate
compiler-errors May 31, 2024
25d40c9
handle parent const effects correctly in type_certainty
y21 Jun 1, 2024
ab45660
Auto merge of #125775 - compiler-errors:uplift-closure-args, r=lcnr
bors Jun 1, 2024
568f4fc
Auto merge of #12871 - Jacherr:issue-12768, r=blyxyas
bors Jun 2, 2024
61d3e14
Auto merge of #12815 - GuillaumeGomez:add-needless_character_iteratio…
bors Jun 3, 2024
4f3180a
Auto merge of #12875 - y21:deprecate_cfg_lints, r=flip1995
bors Jun 3, 2024
e94779a
Opt-in diagnostics reporting to avoid doing extra work in the new solver
compiler-errors Jun 1, 2024
708ef79
only run flop lints on inherent method calls
y21 Jun 3, 2024
9173c58
Using Clippy as a proper noun when refering to the unique entity Clippy
lochetti Jun 3, 2024
5d568ad
Auto merge of #12885 - lochetti:clippy_proper_noun, r=flip1995
bors Jun 3, 2024
9f4a2dd
Align Term methods with GenericArg methods
compiler-errors May 30, 2024
537ce5c
Handle safety keyword for extern block inner items
spastorino May 23, 2024
bd0f908
Add safe/unsafe to static inside extern blocks
spastorino May 7, 2024
46e3304
Auto merge of #12884 - y21:issue12881, r=Alexendoo
bors Jun 4, 2024
158b658
Fix false positive for `needless_character_iteration` lint
GuillaumeGomez Jun 3, 2024
e8d02fe
Make top-level `rustc_parse` functions fallible.
nnethercote May 31, 2024
d47ab9f
Update version attribute for 1.79 lints
xFrednet Jun 5, 2024
466acfa
Changelog for Clippy 1.79 :mortar_board:
xFrednet Jun 4, 2024
10d1f32
Auto merge of #12886 - GuillaumeGomez:fix-needless_character_iteratio…
bors Jun 5, 2024
a0e407c
Address PR feedback <3
xFrednet Jun 5, 2024
35e2027
Fix grammer for the Safety documentation check
paultag Jun 5, 2024
bc00d7b
Auto merge of #12845 - cookie-s:dedup-boolmethods-diags, r=Jarcho
bors Jun 5, 2024
1105e9d
Auto merge of #12700 - Luv-Ray:overly_complex_bool_expr, r=Jarcho
bors Jun 5, 2024
d955d0a
Auto merge of #12891 - paultag:paultag/fix-lint-description, r=Manish…
bors Jun 5, 2024
6cfd4ac
Auto merge of #10632 - Alexendoo:needless-maybe-sized, r=Jarcho
bors Jun 5, 2024
38de6e1
Misc fixes to cranelift/clippy/miri
BoxyUwU Jun 4, 2024
ea13653
Auto merge of #124482 - spastorino:unsafe-extern-blocks, r=oli-obk
bors Jun 6, 2024
c245cde
Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk"
lqd Jun 6, 2024
4e7f974
Auto merge of #12827 - Alexendoo:lint-groups-priority, r=Jarcho
bors Jun 6, 2024
1e23449
Move `is_receiver_of_method_call` to `clippy_utils` for reuse
samueltardieu May 25, 2024
35b2aa9
Add required parentheses around method receiver
samueltardieu May 25, 2024
16fcbd2
Auto merge of #126068 - lqd:revert-124976, r=petrochenkov
bors Jun 6, 2024
5b63ab1
Lint `manual_unwrap_or_default` for Result as well
lochetti Jun 6, 2024
5ea5f63
Revert "Rollup merge of #124099 - voidc:disallow-ambiguous-expr-attrs…
lqd Jun 6, 2024
478d444
Allow manual_unwrap_or_default at useless_conversion_try tests
lochetti Jun 6, 2024
246d4fe
bless `std_instead_of_core`
slanterns Jun 7, 2024
3e43cfc
Rollup merge of #126101 - lqd:revert-124099, r=wesleywiser
workingjubilee Jun 7, 2024
abd0116
Revert "Create const block DefIds in typeck instead of ast lowering"
oli-obk Jun 3, 2024
127f3e1
Auto merge of #125918 - oli-obk:const_block_ice, r=compiler-errors
bors Jun 7, 2024
d9ae936
Auto merge of #12897 - lochetti:manual_unwrap_or_default_result, r=dswij
bors Jun 7, 2024
0b441d5
Auto merge of #12877 - y21:const_host_ice, r=dswij
bors Jun 7, 2024
0f87a81
Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij
bors Jun 7, 2024
f990ea1
Auto merge of #12844 - Alexendoo:to-string-in-format-args, r=dswij
bors Jun 7, 2024
336046c
Auto merge of #12889 - xFrednet:changelog-1-79, r=flip1995,dswij
bors Jun 7, 2024
b21ee38
Don't lint blocks in closures for blocks_in_conditions
Alexendoo May 15, 2024
65af5d7
Remove `lazy_static` mention
Alexendoo Jun 7, 2024
1781333
[`match_same_arms`]: add a test case with lifetimes
J-ZhengLi Jun 7, 2024
1e40764
Auto merge of #12901 - J-ZhengLi:test_case, r=Manishearth
bors Jun 7, 2024
6fdf295
let `qualify_min_const_fn` deal with drop checks
y21 Apr 16, 2024
973f318
qualify_min_const_fn: ignore cleanup bbs
y21 Apr 16, 2024
c3d3a3f
remove unnecessary const error handling in `missing_const_for_fn`
y21 Jun 7, 2024
d553ebe
Auto merge of #12851 - samueltardieu:issue12846, r=y21
bors Jun 7, 2024
0ea88b9
Auto merge of #12900 - Alexendoo:no-lazy-static, r=llogiq
bors Jun 7, 2024
fe6f332
Rollup merge of #125951 - slanterns:error_in_core_stabilization, r=Am…
fmease Jun 8, 2024
75e1d72
Normalize type aliases when checking significant drops.
Jarcho Jun 8, 2024
48686ad
Auto merge of #12805 - Alexendoo:blocks-in-conditions-closures, r=dswij
bors Jun 8, 2024
2855a87
fix typos of author lint
tesuji May 26, 2024
5acc25e
Update `icu4x` dependencies
clubby789 Jun 8, 2024
3f9c587
Filter from first typed symbol
alex-semenyuk Jun 9, 2024
55344c8
Handle single chars with `to_string()` for `single_char_add_str`
belyakov-am Jun 9, 2024
f7723ca
Fix dogfood test
belyakov-am Jun 9, 2024
f7515ae
Don't lint indexing_slicing lints on proc macros
lochetti Jun 9, 2024
8c1f953
ScalarInt: size mismatches are a bug, do not delay the panic
RalfJung Jun 8, 2024
35f54fd
Rollup merge of #126159 - RalfJung:scalarint-size-mismatch, r=oli-obk
matthiaskrgr Jun 10, 2024
acdf564
Auto merge of #12904 - Jarcho:issue_10750, r=xFrednet
bors Jun 11, 2024
dbdc437
Auto merge of #12913 - alex-semenyuk:ui_fix, r=xFrednet
bors Jun 11, 2024
87c895a
Auto merge of #12915 - belyakov-am:lint/single_char_add_str, r=xFrednet
bors Jun 11, 2024
9ddea51
Auto merge of #12912 - lochetti:fix_12824, r=dswij
bors Jun 11, 2024
c86b19f
Add lint to check manual pattern char comparison and merge its code w…
AurelienFT Jun 11, 2024
740b72e
Auto merge of #12849 - AurelienFT:manual-char-comparison-pattern, r=A…
bors Jun 11, 2024
38d12a9
Auto merge of #12681 - y21:issue12677, r=Jarcho
bors Jun 11, 2024
aaade2d
Auto merge of #12855 - tesuji:fix-author-lint, r=Jarcho
bors Jun 11, 2024
cc63143
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Jun 13, 2024
614966b
Bump Clippy version -> 0.1.81
flip1995 Jun 13, 2024
89658ef
Bump nightly version -> 2024-06-13
flip1995 Jun 13, 2024
3e5a02b
Auto merge of #12921 - flip1995:rustup, r=flip1995
bors Jun 13, 2024
d904461
Merge commit '3e5a02b13b1244545454752c6629b767522a44b1' into clippy-s…
flip1995 Jun 13, 2024
17d2856
Update Cargo.lock
flip1995 Jun 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70"

[[package]]
name = "clippy"
version = "0.1.80"
version = "0.1.81"
dependencies = [
"anstream",
"clippy_config",
Expand All @@ -655,7 +655,7 @@ dependencies = [

[[package]]
name = "clippy_config"
version = "0.1.80"
version = "0.1.81"
dependencies = [
"rustc-semver",
"serde",
Expand All @@ -678,7 +678,7 @@ dependencies = [

[[package]]
name = "clippy_lints"
version = "0.1.80"
version = "0.1.81"
dependencies = [
"arrayvec",
"cargo_metadata 0.18.1",
Expand All @@ -703,7 +703,7 @@ dependencies = [

[[package]]
name = "clippy_utils"
version = "0.1.80"
version = "0.1.81"
dependencies = [
"arrayvec",
"clippy_config",
Expand Down Expand Up @@ -1023,7 +1023,7 @@ dependencies = [

[[package]]
name = "declare_clippy_lint"
version = "0.1.80"
version = "0.1.81"
dependencies = [
"itertools 0.12.1",
"quote",
Expand Down
65 changes: 63 additions & 2 deletions src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,69 @@ document.

## Unreleased / Beta / In Rust Nightly

[93f0a9a9...master](https://github.com/rust-lang/rust-clippy/compare/93f0a9a9...master)
[ca3b3937...master](https://github.com/rust-lang/rust-clippy/compare/ca3b3937...master)

## Rust 1.79

Current stable, released 2024-06-13

[View all 102 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2024-03-08T11%3A13%3A58Z..2024-04-18T15%3A50%3A50Z+base%3Amaster)

### New Lints

* Added [`legacy_numeric_constants`] to `style`
[#12312](https://github.com/rust-lang/rust-clippy/pull/12312)
* Added [`missing_transmute_annotations`] to `suspicious`
[#12239](https://github.com/rust-lang/rust-clippy/pull/12239)
* Added [`integer_division_remainder_used`] to `restriction`
[#12451](https://github.com/rust-lang/rust-clippy/pull/12451)
* Added [`duplicated_attributes`] to `suspicious`
[#12378](https://github.com/rust-lang/rust-clippy/pull/12378)
* Added [`manual_unwrap_or_default`] to `suspicious`
[#12440](https://github.com/rust-lang/rust-clippy/pull/12440)
* Added [`zero_repeat_side_effects`] to `suspicious`
[#12449](https://github.com/rust-lang/rust-clippy/pull/12449)
* Added [`const_is_empty`] to `suspicious`
[#12310](https://github.com/rust-lang/rust-clippy/pull/12310)

### Moves and Deprecations

* Moved [`box_default`] to `style` (From `perf`)
[#12601](https://github.com/rust-lang/rust-clippy/pull/12601)
* Moved [`manual_clamp`] to `complexity` (From `nursery` now warn-by-default)
[#12543](https://github.com/rust-lang/rust-clippy/pull/12543)
* Moved [`readonly_write_lock`] to `perf` (From `nursery` now warn-by-default)
[#12479](https://github.com/rust-lang/rust-clippy/pull/12479)

### Enhancements

* [`module_name_repetitions`]: Added the [`allowed-prefixes`] configuration to allow common prefixes.
[#12573](https://github.com/rust-lang/rust-clippy/pull/12573)
* [`cast_sign_loss`], [`cast_possible_truncation`], [`cast_lossless`]: Are now allowed in macros
[#12631](https://github.com/rust-lang/rust-clippy/pull/12631)
* [`manual_clamp`]: Now only lints on constant min and max values
[#12543](https://github.com/rust-lang/rust-clippy/pull/12543)
* [`assigning_clones`]: Now considers the [`msrv`] configuration
[#12511](https://github.com/rust-lang/rust-clippy/pull/12511)
* [`needless_return`], [`useless_let_if_seq`], [`mut_mut`], [`read_zero_byte_vec`], [`unused_io_amount`],
[`unused_peekable`]: Now respects `#[allow]` attributes on the affected statement instead
[#12446](https://github.com/rust-lang/rust-clippy/pull/12446)

### False Positive Fixes

* [`cast_lossless`]: No longer lints when casting to `u128`
[#12496](https://github.com/rust-lang/rust-clippy/pull/12496)
* [`std_instead_of_core`] No longer lints on modules that are only in `std`
[#12447](https://github.com/rust-lang/rust-clippy/pull/12447)

### ICE Fixes

* [`needless_return`]: No longer crashes on non-ascii characters
[#12493](https://github.com/rust-lang/rust-clippy/pull/12493)

## Rust 1.78

Current stable, released 2024-05-02
Released 2024-05-02

[View all 112 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2024-01-26T05%3A46%3A23Z..2024-03-07T16%3A25%3A52Z+base%3Amaster)

Expand Down Expand Up @@ -5474,6 +5532,7 @@ Released 2018-09-13
[`manual_next_back`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back
[`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
[`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
[`manual_pattern_char_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
[`manual_range_contains`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
[`manual_range_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns
[`manual_rem_euclid`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid
Expand Down Expand Up @@ -5567,6 +5626,7 @@ Released 2018-09-13
[`needless_borrow`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[`needless_borrowed_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
[`needless_borrows_for_generic_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
[`needless_character_iteration`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_character_iteration
[`needless_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
[`needless_continue`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
[`needless_doctest_main`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
Expand All @@ -5576,6 +5636,7 @@ Released 2018-09-13
[`needless_late_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
[`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
[`needless_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
[`needless_maybe_sized`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
[`needless_option_as_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
[`needless_option_take`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
[`needless_parens_on_range_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy"
version = "0.1.80"
version = "0.1.81"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ You can add options to your code to `allow`/`warn`/`deny` Clippy lints:

Note: `allow` means to suppress the lint for your code. With `warn` the lint
will only emit a warning, while with `deny` the lint will emit an error, when
triggering for your code. An error causes clippy to exit with an error code, so
triggering for your code. An error causes Clippy to exit with an error code, so
is useful in scripts like CI/CD.

If you do not want to include your lint levels in your code, you can globally
Expand Down Expand Up @@ -238,7 +238,7 @@ define the `CLIPPY_DISABLE_DOCS_LINKS` environment variable.
### Specifying the minimum supported Rust version

Projects that intend to support old versions of Rust can disable lints pertaining to newer features by
specifying the minimum supported Rust version (MSRV) in the clippy configuration file.
specifying the minimum supported Rust version (MSRV) in the Clippy configuration file.

```toml
msrv = "1.30.0"
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/book/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ For more details and options, refer to the Cargo documentation.
### Specifying the minimum supported Rust version

Projects that intend to support old versions of Rust can disable lints pertaining to newer features by specifying the
minimum supported Rust version (MSRV) in the clippy configuration file.
minimum supported Rust version (MSRV) in the Clippy configuration file.

```toml
msrv = "1.30.0"
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/book/src/development/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ More about [intellij] command usage and reasons.

## lintcheck

`cargo lintcheck` will build and run clippy on a fixed set of crates and
`cargo lintcheck` will build and run Clippy on a fixed set of crates and
generate a log of the results. You can `git diff` the updated log against its
previous version and see what impact your lint made on a small set of crates.
If you add a new lint, please audit the resulting warnings and make sure there
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/book/src/development/defining_lints.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ declare_clippy_lint! {
///
/// ### Example
/// ```rust
/// // example code where clippy issues a warning
/// // example code where Clippy issues a warning
/// ```
/// Use instead:
/// ```rust
/// // example code which does not raise clippy warning
/// // example code which does not raise Clippy warning
/// ```
#[clippy::version = "1.70.0"] // <- In which version was this implemented, keep it up to date!
pub LINT_NAME, // <- The lint name IN_ALL_CAPS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ selection of possible matches is produced by the pattern syntax. In the second
stage, the named subpattern references can be used to do additional tests like
asserting that a node hasn't been created as part of a macro expansion.

## Implementing clippy lints using patterns
## Implementing Clippy lints using patterns

As a "real-world" example, I re-implemented the `collapsible_if` lint using
patterns. The code can be found
Expand Down Expand Up @@ -572,7 +572,7 @@ The pattern syntax and the *PatternTree* are independent of specific syntax tree
implementations (rust ast / hir, syn, ...). When looking at the different
pattern examples in the previous sections, it can be seen that the patterns
don't contain any information specific to a certain syntax tree implementation.
In contrast, clippy lints currently match against ast / hir syntax tree nodes
In contrast, Clippy lints currently match against ast / hir syntax tree nodes
and therefore directly depend on their implementation.

The connection between the *PatternTree* and specific syntax tree
Expand Down Expand Up @@ -690,7 +690,7 @@ change, only the `IsMatch` trait implementations need to be adapted and existing
lints can remain unchanged. This also means that if the `IsMatch` trait
implementations were integrated into the compiler, updating the `IsMatch`
implementations would be required for the compiler to compile successfully. This
could reduce the number of times clippy breaks because of changes in the
could reduce the number of times Clippy breaks because of changes in the
compiler. Another advantage of the pattern's independence is that converting an
`EarlyLintPass` lint into a `LatePassLint` wouldn't require rewriting the whole
pattern matching code. In fact, the pattern might work just fine without any
Expand Down Expand Up @@ -777,7 +777,7 @@ complexity to solve a relatively minor problem.

The issue of users not knowing about the *PatternTree* structure could be solved
by a tool that, given a rust program, generates a pattern that matches only this
program (similar to the clippy author lint).
program (similar to the Clippy author lint).

For some simple cases (like the first example above), it might be possible to
successfully mix Rust and pattern syntax. This space could be further explored
Expand All @@ -789,7 +789,7 @@ The pattern syntax is heavily inspired by regular expressions (repetitions,
alternatives, sequences, ...).

From what I've seen until now, other linters also implement lints that directly
work on syntax tree data structures, just like clippy does currently. I would
work on syntax tree data structures, just like Clippy does currently. I would
therefore consider the pattern syntax to be *new*, but please correct me if I'm
wrong.

Expand Down Expand Up @@ -982,5 +982,5 @@ pattern!{
}
```

In the future, clippy could use this system to also provide lints for custom
In the future, Clippy could use this system to also provide lints for custom
syntaxes like those found in macros.
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy_config"
version = "0.1.80"
version = "0.1.81"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_dummy/PUBLISH.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This is a dummy crate to publish to crates.io. It primarily exists to ensure
that folks trying to install clippy from crates.io get redirected to the
that folks trying to install Clippy from crates.io get redirected to the
`rustup` technique.

Before publishing, be sure to rename `clippy_dummy` to `clippy` in `Cargo.toml`,
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/clippy_dummy/crates-readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Installing clippy via crates.io is deprecated. Please use the following:
Installing Clippy via crates.io is deprecated. Please use the following:

```terminal
rustup component add clippy
```

on a Rust version 1.29 or later. You may need to run `rustup self update` if it complains about a missing clippy binary.
on a Rust version 1.29 or later. You may need to run `rustup self update` if it complains about a missing Clippy binary.

See [the homepage](https://github.com/rust-lang/rust-clippy/#clippy) for more information
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_lints/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy_lints"
version = "0.1.80"
version = "0.1.81"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
Expand Down
51 changes: 0 additions & 51 deletions src/tools/clippy/clippy_lints/src/attrs/maybe_misused_cfg.rs

This file was deleted.

Loading
Loading