Centri3
aa6c27a74e
change names to not be implicitly negative
2023-04-25 11:14:52 -05:00
Philipp Krones
a1b75c5108
Merge commit ' a3ed905928' into clippyup
2023-04-23 13:28:56 +02:00
Philipp Krones
583c97e9bb
Merge remote-tracking branch 'upstream/master' into rustup
2023-04-23 03:39:03 -07:00
DrMeepster
68c4776b46
offset_of
2023-04-21 02:14:02 -07:00
Centri3
41f6d88be5
make cargo test pass
2023-04-19 21:51:58 -05:00
Centri3
a3aeec4f75
config instead of new lint and don't panic
2023-04-19 21:46:13 -05:00
Lukas Lueg
4bc68f9c60
Add size-parameter to unecessary_box_returns
...
Fixes #10641
2023-04-19 14:32:05 +02:00
Nilstrieb
8f53926232
Alloc hir::Lit in an arena to remove the destructor from Expr
...
This allows allocating `Expr`s into a dropless arena, which is useful
for using length prefixed thing slices in HIR, since these can only be
allocated in the dropless arena and not in a typed arena. This is
something I'm working on.
2023-04-16 15:35:51 +00:00
bluthej
6409556926
Standardize lint formulation
2023-04-12 13:48:03 +02:00
Philipp Krones
6b95029f17
Merge commit ' 83e42a2337' into clippyup
2023-04-11 15:31:08 +02:00
bhould287
3b22352d0d
Fix bug with getting parent directories in lookup_conf_file
2023-04-03 16:16:48 +01:00
bhould287
afdfbf8fde
Show multiple clippy.toml warnings with sess.warn instead of eprintln!
2023-04-03 15:03:05 +01:00
Yuri Astrakhan
41b367fa5f
Gramar, and spelin kleanup
...
A few minor cleanups in various markdown files, mostly focusing on spelling and ignoring non-compilable codeblocks.
2023-03-30 15:31:14 -04:00
bors
799732cbd8
Auto merge of #10414 - csmoe:large-future, r=xFrednet
...
add large future lint
Closes #5263
---
changelog: new lint: [`large_futures`]
[#10414 ](https://github.com/rust-lang/rust-clippy/pull/10414 )
<!-- changelog_checked -->
2023-03-30 08:51:29 +00:00
bors
ef3867f394
Auto merge of #9102 - botahamec:unused-box, r=xFrednet
...
Added the `[unnecessary_box_returns]` lint
fixes #5
I'm not confident in the name of this lint. Let me know if you can think of something better
---
changelog: New lint: ``[`unnecessary_box_returns`]``
[#9102 ](https://github.com/rust-lang/rust-clippy/pull/9102 )
<!-- changelog_checked -->
2023-03-30 08:22:16 +00:00
Alex Macleod
3259b48568
Migrate format_args.rs to rustc_ast::FormatArgs
...
No longer lints empty precisions `{:.}` as the spans aren't available
2023-03-28 12:22:22 +00:00
Micha White
a143fb7a11
Avoid breaking exported API
2023-03-26 17:49:57 -04:00
Philipp Krones
8df896c076
Merge commit ' d5e2a7aca5' into clippyup
2023-03-24 14:26:19 +01:00
Philipp Krones
62cba5d971
Merge remote-tracking branch 'upstream/master' into rustup
2023-03-24 13:36:09 +01:00
csmoe
4fdae81c70
add large future lint
2023-03-20 22:51:01 +08: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