Catherine
9cf1509b25
New lint absolute_paths
2023-07-21 17:26:58 -05:00
Centri3
74a0c9c62f
[needless_lifetimes
]' suggestion now points at the lifetimes
2023-06-13 14:05:22 -05:00
Jason Newcomb
949712c90a
Reborrow mutable references in explicit_iter_loop
2023-06-09 21:40:03 -04:00
Alex Macleod
09058388de
Ignore lifetimes from differing contexts in needless_lifetimes
2023-02-20 09:54:53 +00:00
Philipp Krones
7c61b4ed89
Merge remote-tracking branch 'upstream/master' into rustup
2023-02-10 11:33:45 +01:00
Alex Macleod
6a8b20230b
Add machine applicable suggestion for needless_lifetimes
...
Also adds a test for #5787
2023-01-31 14:12:03 +00:00
Tyler Weaver
4fde96c30e
Test needless_lifetimes within external macro
...
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
2023-01-30 16:16:53 -07:00
Camille GILLOT
92c4f1e2d9
Take a LocalDefId in hir::Visitor::visit_fn.
2023-01-28 09:51:50 +00:00
Philipp Krones
d05e2865a0
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
Philipp Krones
11434f270f
Merge remote-tracking branch 'upstream/master' into rustup
2022-12-01 12:55:15 +01:00
Camille GILLOT
42db5e5e62
Use kw::Empty for elided lifetimes in path.
2022-11-24 17:48:59 +00:00
Camille GILLOT
93cfcedfd5
Separate lifetime ident from resolution in HIR.
2022-11-23 19:33:06 +00:00
Samuel Moelius
2cda73f617
Use walk_generic_arg
2022-11-22 13:47:38 -05:00
Philipp Krones
46c5a5d234
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
2022-11-21 20:51:52 +01:00
Philipp Krones
fd5b85c957
Merge remote-tracking branch 'upstream/master' into rustup
2022-11-21 20:01:17 +01:00
Samuel Moelius
c0d928561c
Change two <=
to ==
for clarity
2022-10-31 20:12:37 -04:00
Samuel Moelius
2c44398487
Adress review comments
2022-10-30 06:47:35 -04:00
Cameron Steffen
16566e97fd
Use LanguageItems::require less
2022-10-29 16:04:10 -05:00
Nicholas Nethercote
efca32e23a
Rename some OwnerId
fields.
...
spastorino noticed some silly expressions like `item_id.def_id.def_id`.
This commit renames several `def_id: OwnerId` fields as `owner_id`, so
those expressions become `item_id.owner_id.def_id`.
`item_id.owner_id.local_def_id` would be even clearer, but the use of
`def_id` for values of type `LocalDefId` is *very* widespread, so I left
that alone.
2022-10-29 20:28:38 +11:00
Samuel Moelius
e9216d836c
Improve needless_lifetimes
2022-10-28 13:17:36 -04:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
Philipp Krones
67af127f24
Fix dogfood
2022-09-29 12:02:58 +02:00
Philipp Krones
bbcde66685
Merge remote-tracking branch 'upstream/master' into rustup
2022-09-28 14:27:32 +02:00
Takayuki Maeda
ea75178219
separate definitions and HIR
owners
...
fix a ui test
use `into`
fix clippy ui test
fix a run-make-fulldeps test
implement `IntoQueryParam<DefId>` for `OwnerId`
use `OwnerId` for more queries
change the type of `ParentOwnerIterator::Item` to `(OwnerId, OwnerNode)`
2022-09-24 23:21:19 +09:00
Nicholas Nethercote
0d1469ad34
Remove unused argument from visit_poly_trait_ref
.
2022-09-12 13:51:10 +10:00
Philipp Krones
98bf99e2f8
Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup
2022-09-09 13:36:26 +02:00
Michael Goulet
854f751b26
Appease clippy again
2022-09-09 01:31:46 +00:00
Philipp Krones
4ee55c5528
Merge remote-tracking branch 'upstream/auto' into rustup
2022-09-08 21:27:09 +02:00
Philipp Krones
67c405cc1d
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
2022-07-28 19:08:22 +02:00
Philipp Krones
0905ec465d
Merge remote-tracking branch 'upstream/master' into rustup
2022-07-28 18:55:32 +02:00
Camille GILLOT
8edcf6cd1e
Clippy fallout.
2022-07-26 19:00:31 +02:00
Camille GILLOT
419d39c072
Clippy fallout.
2022-07-25 19:19:23 +02:00
Camille GILLOT
dcd248465e
Clippy fallout.
2022-07-13 14:16:17 +02:00
Philipp Krones
09f5df5087
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
2022-06-30 10:50:09 +02:00
flip1995
f8f9d01c2a
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
2022-06-16 17:39:06 +02:00
Camille GILLOT
1e86cc5194
Manipulate lifetimes by LocalDefId for region resolution.
2022-06-03 12:03:20 +02:00
flip1995
bca3d8a6b5
Track if a where bound comes from a impl Trait desugar
...
With #93803 `impl Trait` function arguments get desugared to hidden
where bounds. However, Clippy needs to know if a bound was originally a
impl Trait or an actual bound. This adds a field to the
`WhereBoundPredicate` struct to keep track of this information during
HIR lowering.
2022-05-07 17:10:30 +02:00
flip1995
7cd86aa1be
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
2022-05-05 15:12:52 +01:00
Camille GILLOT
e2d923ac3b
Store all generic bounds as where predicates.
2022-04-30 13:55:13 +02:00
Camille GILLOT
67241bb03c
Inline WhereClause into Generics.
2022-04-30 13:51:49 +02:00
flip1995
bf66aeda0a
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
2022-01-27 15:12:45 +01:00
Cameron Steffen
eb80da175c
Fix Visitor::NestedFilter in Clippy
2022-01-16 16:02:36 -06:00
Camille GILLOT
0a48547140
Return a LocalDefId in get_parent_item.
2022-01-15 21:26:20 +01:00
flip1995
ece0946d7f
Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup
2021-12-17 13:40:22 +01:00
flip1995
8fea1d94f3
Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup
2021-12-06 12:33:31 +01:00
flip1995
e674d0a599
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
2021-11-04 12:52:36 +00:00
flip1995
2b20f49841
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
2021-07-29 12:16:06 +02:00
flip1995
6c27482115
Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyup
2021-06-03 08:41:37 +02:00
flip1995
f6d1f368db
Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
2021-04-08 17:50:13 +02:00
flip1995
9f6b5de7de
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
2021-03-25 19:29:11 +01:00