Philipp Krones
62cba5d971
Merge remote-tracking branch 'upstream/master' into rustup
2023-03-24 13:36:09 +01:00
clubby789
f2eddc5924
Remove box expressions from HIR
2023-03-14 17:18:26 +00:00
J-ZhengLi
f0ae2b71ca
make [ifs_same_cond] use ignore_interior_mutablility configuration
2023-03-13 20:13:56 +08:00
Philipp Krones
cf8a67d9ad
Merge commit ' 3c06e0b1ce' into clippyup
2023-03-10 10:53:50 +01:00
bors
3c06e0b1ce
Auto merge of #10275 - Alexendoo:format-args-ast, r=flip1995
...
Migrate `write.rs` to `rustc_ast::FormatArgs`
changelog: none
Part 1 of #10233
The additions to `clippy_utils` are the main novelty of this PR, there's no removals yet since other parts still rely on `FormatArgsExpn`
The changes to `write.rs` itself are relatively straightforward this time around, as there's no lints in it that rely on type checking format params
r? `@flip1995`
2023-03-10 09:38:18 +00:00
Philipp Krones
baa997caf6
Merge remote-tracking branch 'upstream/master' into rustup
2023-03-10 10:22:18 +01:00
Alex Macleod
dc23e42fb6
Add format_args_collector internal lint
2023-03-06 21:38:32 +00:00
bors
ea2073a2f0
Auto merge of #108351 - petrochenkov:rmdit, r=cjgillot
...
rustc_middle: Remove trait `DefIdTree`
This trait was a way to generalize over both `TyCtxt` and `Resolver`, but now `Resolver` has access to `TyCtxt`, so this trait is no longer necessary.
2023-03-05 10:37:02 +00:00
David Tolnay
cc6180c2f4
Include former name of renamed lints in lints.json
2023-03-03 19:03:54 -08:00
Alex Macleod
64b54ef950
Fix array-size-threshold config deserialization error
2023-03-02 21:42:11 +01:00
Vadim Petrochenkov
79359cbbcf
rustc_middle: Remove trait DefIdTree
...
This trait was a way to generalize over both `TyCtxt` and `Resolver`, but now `Resolver` has access to `TyCtxt`, so this trait is no longer necessary.
2023-03-02 23:46:44 +04:00
Alex Macleod
2cadea5dc5
Fix array-size-threshold config deserialization error
2023-02-28 14:37:41 +00:00
bors
0966f59c78
Auto merge of #108474 - Jarcho:clippyup, r=Manishearth
...
Update Clippy
Seems like `@flip1995` so this is a couple days late.
r? `@Manishearth`
2023-02-26 18:45:47 +00:00
Jason Newcomb
0413fb35ba
Merge commit ' 149392b0ba' into clippyup
2023-02-25 19:28:50 -05:00
Jason Newcomb
69c4ff6df8
Emit unnecessary_def_path in source order.
2023-02-25 18:09:24 -05:00
Jason Newcomb
bc184e9c7d
Merge branch 'master' into rustup
2023-02-25 17:43:19 -05:00
Michael Goulet
9fd0a415bb
Make clippy happy
2023-02-25 19:46:36 +00:00
Liu Dingming
b9c617a1b7
correct comments
2023-02-22 21:36:16 +08:00
bors
b1cf1e7b6a
Auto merge of #10303 - pvdrz:pub_crate_missing_docs, r=giraffate
...
Add configuration to lint missing docs of `pub(crate)` items
Fixes this: https://github.com/rust-lang/rust-clippy/issues/5736#issuecomment-1412442404
TODO:
- [x] Needs docs
- [x] Needs better names
- [x] Should `pub` items be checked to when this new option is enabled? I'm saying no because `missing_docs` already exists
`@flip1995` I'd like to get some input from you :)
---
changelog: Enhancement: [`missing_docs_in_private_items`]: Added new configuration `missing-docs-in-crate-items` to lint on items visible within the current crate. For example, `pub(crate)` items.
[#10303 ](https://github.com/rust-lang/rust-clippy/pull/10303 )
<!-- changelog_checked -->
2023-02-20 23:59:07 +00:00
Christian Poveda
c29e767ef1
Address review comments
2023-02-17 09:09:44 -05:00
Kyle Matsuda
98c4a49db8
remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata
2023-02-16 17:05:56 -07:00
Kyle Matsuda
f0565c939e
change usages of type_of to bound_type_of
2023-02-16 17:01:52 -07:00
Philipp Krones
e7fe1f9c14
Merge commit ' 0f7558148c' into clippyup
2023-02-10 14:01:19 +01:00
Philipp Krones
7c61b4ed89
Merge remote-tracking branch 'upstream/master' into rustup
2023-02-10 11:33:45 +01:00
Christian Poveda
cc19fbe177
update metadata
2023-02-09 16:53:34 -05:00
Christian Poveda
e2e23c0045
Add docs and update tests
2023-02-09 16:41:45 -05:00
Christian Poveda
c6692a8b42
Add configuration to lint missing docs of pub(crate) items
2023-02-06 14:21:37 -05:00
xFrednet
c642cfe3bf
Make [clippy::dump] support trait items
2023-02-04 19:34:31 +01:00
koka
a9e6b12854
fix: use correct lint name
...
fix
2023-01-30 20:35:35 +09:00
koka
af62bf95a3
fix key name of MUTABLE_KEY_TYPE
2023-01-29 03:13:30 +09:00
koka
d87a6bc9b1
add MANUAL_RETAIN to msrv
...
MANUAL_RETAIN uses
- msrvs::STRING_RETAIN
- msrvs::BTREE_SET_RETAIN
- msrvs::BTREE_MAP_RETAIN
- msrvs::HASH_SET_RETAIN
- msrvs::HASH_MAP_RETAIN
2023-01-29 03:07:09 +09:00
koka
2f4b047b27
add MANUAL_REM_EUCLID to msrv
...
MANUAL_REM_EUCLID uses msrvs::REM_EUCLID
2023-01-29 03:04:56 +09:00
koka
1766532b20
add MANUAL_IS_ASCII_CHECK to msrv
...
MANUAL_IS_ASCII_CHECK uses msrvs::IS_ASCII_DIGIT and msrvs::IS_ASCII_DIGIT_CONST
2023-01-29 03:02:23 +09:00
koka
25d455bd17
fix: add missing dot to suppress_restriction_lint_in_const
2023-01-29 02:54:26 +09:00
koka
e791522d35
add DERIVABLE_IMPLS to msrv
...
DERIVABLE_IMPLS uses msrvs::DEFAULT_ENUM_ATTRIBUTE
2023-01-29 02:39:37 +09:00
koka
fb77b02789
add NEEDLESS_BORROW to msrv
...
NEEDLESS_BORROW uses msrvs::ARRAY_INTO_ITERATOR
2023-01-29 02:37:00 +09:00
koka
7716d69757
fix: add missing dot to AWAIT_HOLDING_INVALID_TYPE
2023-01-29 02:27:43 +09:00
koka
e65f9f9d32
add ALMOST_COMPLETE_RANGE to msrv
...
ALMOST_COMPLETE_RANGE uses msrvs::RANGE_INCLUSIVE
2023-01-29 02:22:10 +09:00
koka
07a8bf15ff
add TRANSMUTE_PTR_TO_REF to msrv
...
TRANSMUTE_PTR_TO_REF uses msrvs::POINTER_CAST
2023-01-29 02:14:38 +09:00
koka
532841fcae
add UNNECESSARY_LAZY_EVALUATIONS to msrv
...
UNNECESSARY_LAZY_EVALUATIONS uses msrvs::BOOL_THEN_SOME for `then` to
`then_some`
2023-01-29 02:02:46 +09:00
koka
a05e86f5dd
add SEEK_REWIND in msrv
...
SEEK_REWIND uses msrvs::SEEK_REWIND
2023-01-29 01:54:31 +09:00
koka
5a9c4a0090
add SEEK_FROM_CURRENT in msrv
...
SEEK_FROM_CURRENT uses msrvs::SEEK_FROM_CURRENT
2023-01-29 01:52:05 +09:00
koka
a0460cf37d
add COLLAPSIBLE_STR_REPLACE in msrv
...
COLLAPSIBLE_STR_REPLACE uses msrvs::PATTERN_TRAIT_CHAR_ARRAY
2023-01-29 01:49:10 +09:00
Philipp Krones
5c7a65251a
Merge commit ' 1480cea393' into clippyup
2023-01-27 21:09:08 +01:00
bors
aceb4439d6
Auto merge of #10199 - tylerjw:document-extending-list-configs, r=xFrednet
...
Document lint configuration values in Clippy's book
changelog: document lint configuration values in Clippy's book
fixes #9991
r? `@xFrednet`
2023-01-14 18:14:31 +00:00
Tyler Weaver
c0da8acb72
Comment that lint_configuration.md is machine generated
2023-01-14 11:10:40 -07:00
Tyler Weaver
7d1609dce3
Document configurations in table and paragraphs
...
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
2023-01-13 16:26:46 -07:00
Tyler Weaver
2e2ae68d5a
Document lint configuration values in Clippy's book
...
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
2023-01-13 11:48:51 -07:00
Philipp Krones
d21616737b
Merge commit ' 7f27e2e74e' into clippyup
2023-01-12 19:48:13 +01:00
Philipp Krones
631481ffb3
Merge remote-tracking branch 'upstream/master' into rustup
2023-01-12 18:59:59 +01:00