xFrednet
4fc960301b
Metadata collection: Rounding up the implementation
2021-05-05 18:38:26 +02:00
xFrednet
35844d0a48
Metadata collection: Resolve lint from locals
2021-05-05 18:35:33 +02:00
xFrednet
2ce5e368d8
Metadata collection: Refining the implementation
2021-05-05 18:35:33 +02:00
xFrednet
6658db1044
Metadata collection: processing emission closures (417/455)
2021-05-05 18:35:33 +02:00
xFrednet
5830fa7c60
Metadata Collection: Collecting direct emission applicabilities (324/455)
2021-05-05 18:35:33 +02:00
xFrednet
ee8a99a114
Metadata collection: Collecting Applicability assign values
2021-05-05 18:35:33 +02:00
xFrednet
a39912cfbb
Metadata collection: Some refactoring for readability
2021-05-05 18:35:33 +02:00
xFrednet
ee130d066d
Metadata collection: Tracking Applicability mut borrows
2021-05-05 18:35:33 +02:00
xFrednet
8dca1b8f61
Metadata collection: Collecting Applicability assign values
2021-05-05 18:35:33 +02:00
xFrednet
68d702f88d
Metadata collection lint: Start Applicability value tracking
2021-05-05 18:35:33 +02:00
xFrednet
060e0e9f93
Metadata collection lint: Basic applicability collection
2021-05-05 18:35:33 +02:00
xFrednet
637751ff62
Metadata collection lint: Basic lint collection
...
WIP-2021-02-01
WIP-2021-02-01
WIP-2021-02-13
2021-05-05 18:34:24 +02:00
Cameron Steffen
499813026f
Fix config parsing
2021-05-02 17:50:22 -05:00
Cameron Steffen
857d9f15da
Fix error punctuation
2021-05-02 16:56:46 -05:00
Cameron Steffen
1e22e564e4
Refactor config deserialization
2021-05-01 17:38:05 -05:00
Cameron Steffen
32351d6b9f
Remove leftover plugin conf_file code
2021-04-28 16:04:59 -05:00
Cameron Steffen
33ed8b5b24
Remove needless_question_mark MSRV
2021-04-26 16:02:11 -05:00
Cameron Steffen
dcf4e07458
Finish MSRV for cloned_instead_of_copied
2021-04-26 11:09:24 -05:00
Jason Newcomb
f6c5d8d599
Remove all usages of match_path
, match_qpath
and match_path_ast
except the author
lint.
...
Add note to fix `MATCH_TYPE_ON_DIAG_ITEM`
Add false negative test for `uninit_assumed_init`
2021-04-15 19:27:25 -04:00
flip1995
ffa2b7da29
Merge remote-tracking branch 'upstream/master' into rustup
2021-04-08 17:36:41 +02:00
Jason Newcomb
12fce55766
Fix all occurences of needless_borrow
internally
2021-04-06 10:43:47 -04:00
Amanieu d'Antras
879bfeca54
Use AnonConst for asm! constants
2021-04-06 12:35:41 +01:00
Cameron Steffen
827d6aaad4
Eat dogfood
2021-03-31 14:06:27 -05:00
Cameron Steffen
5f887d09b8
Add if_chain lints
2021-03-31 14:06:27 -05:00
flip1995
5351bbfbf5
Add missing lints to MSRV config doc
2021-03-26 16:58:06 +01:00
flip1995
1a1adad81d
Add MSRV option to unnested_or_patterns lint
2021-03-26 14:36:09 +01:00
flip1995
9f6b5de7de
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
2021-03-25 19:29:11 +01:00
flip1995
1f5f184105
Merge remote-tracking branch 'upstream/master' into rustup
2021-03-25 18:38:13 +01:00
Cameron Steffen
0743e841f0
Don't re-export clippy_utils::*
2021-03-17 09:13:52 -05:00
Vadim Petrochenkov
35e8be7407
ast/hir: Rename field-related structures
...
StructField -> FieldDef ("field definition")
Field -> ExprField ("expression field", not "field expression")
FieldPat -> PatField ("pattern field", not "field pattern")
Also rename visiting and other methods working on them.
2021-03-16 11:41:24 +03:00
Cameron Steffen
1c3a3e7dc6
Don't re-export clippy_utils::diagnostics::*
2021-03-15 20:06:01 -05:00
Cameron Steffen
6fc52a63d1
Move some utils to clippy_utils::source module
2021-03-15 15:34:15 -05:00
Cameron Steffen
eb7f8d6089
Move some utils to ty_utils
2021-03-15 13:44:09 -05:00
Camille GILLOT
6c668266c0
Remove hir::Expr::attrs.
2021-03-09 19:27:58 +01:00
Camille GILLOT
dc9560cfd2
Remove hir::Item::attrs.
2021-03-09 19:27:50 +01:00
Camille GILLOT
49835d8abf
Remove hir::ImplItem::attrs.
2021-03-09 19:23:08 +01:00
Camille GILLOT
04496071e4
Remove hir::Arm::attrs.
2021-03-09 19:23:05 +01:00
Camille GILLOT
3e721b1445
Remove hir::StmtKind::attrs.
2021-03-09 19:09:35 +01:00
Camille GILLOT
8d5e0f512f
Simplify clippy author.
2021-03-09 19:09:32 +01:00
flip1995
f64149dd04
Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup
2021-02-25 11:25:22 +01:00
Vadim Petrochenkov
b185fa3ae2
ast: Keep expansion status for out-of-line module items
...
Also remove `ast::Mod` which is mostly redundant now
2021-02-18 13:07:49 +03:00
bors
a149f61244
Auto merge of #81993 - flip1995:clippyup, r=Manishearth
...
Update Clippy
Biweekly Clippy update
r? `@Manishearth`
2021-02-17 22:37:42 +00:00
Camille GILLOT
2dc65397ee
Only store a LocalDefId in hir::Item.
...
Items are guaranteed to be HIR owner.
2021-02-15 19:32:10 +01:00
Camille GILLOT
5b68fc16ed
Use ItemId as a strongly typed index.
2021-02-15 19:24:58 +01:00
bors
ce0a47ab8c
Auto merge of #81238 - RalfJung:copy-intrinsics, r=m-ou-se
...
directly expose copy and copy_nonoverlapping intrinsics
This effectively un-does https://github.com/rust-lang/rust/pull/57997 . That should help with `ptr::read` codegen in debug builds (and any other of these low-level functions that bottoms out at `copy`/`copy_nonoverlapping`), where the wrapper function will not get inlined. See the discussion in https://github.com/rust-lang/rust/pull/80290 and https://github.com/rust-lang/rust/issues/81163 .
Cc `@bjorn3` `@therealprof`
2021-02-13 20:30:07 +00:00
Mara Bos
dd91987533
Fix clippy's path to the copy intrinsics.
2021-02-13 18:58:54 +01:00
flip1995
8b9f4a0d34
Merge commit '70c0f90453701e7d6d9b99aaa1fc6a765937b736' into clippyup
2021-02-11 15:04:38 +01:00
Ömer Sinan Ağacan
34b373d309
Rename HIR UnOp variants
...
This renames the variants in HIR UnOp from
enum UnOp {
UnDeref,
UnNot,
UnNeg,
}
to
enum UnOp {
Deref,
Not,
Neg,
}
Motivations:
- This is more consistent with the rest of the code base where most enum
variants don't have a prefix.
- These variants are never used without the `UnOp` prefix so the extra
`Un` prefix doesn't help with readability. E.g. we don't have any
`UnDeref`s in the code, we only have `UnOp::UnDeref`.
- MIR `UnOp` type variants don't have a prefix so this is more
consistent with MIR types.
- "un" prefix reads like "inverse" or "reverse", so as a beginner in
rustc code base when I see "UnDeref" what comes to my mind is
something like "&*" instead of just "*".
2021-02-09 11:39:20 +03:00
Jonas Schievink
a5d442cdf9
Rollup merge of #81680 - camsteffen:primty, r=oli-obk
...
Refactor `PrimitiveTypeTable` for Clippy
I removed `PrimitiveTypeTable` and added `PrimTy::ALL` and `PrimTy::from_name` in its place. This allows Clippy to use `PrimTy::from_name` for the `builtin_type_shadow` lint, and a `const` list of primitive types is deleted from Clippy code (the goal). All changes should be a little faster, if anything.
2021-02-06 17:01:45 +01:00
Cameron Steffen
f2e82af3f2
Use PrimTy in builtin type shadow lint
2021-02-03 08:32:23 -06:00