Andre Bogus
05ba519a3a
trim paths in default_trait_access/clone_on_copy suggestions
2023-01-04 23:39:46 +01:00
Eric Wu
8de011fdf7
don't lint field_reassign when field in closure
...
This commit makes the ContainsName struct visit all interior
expressions, which means that ContainsName will return true
even if `name` is used in a closure within `expr`.
2023-01-01 21:41:46 -05:00
Philipp Krones
bbcde66685
Merge remote-tracking branch 'upstream/master' into rustup
2022-09-28 14:27:32 +02:00
Yuri Astrakhan
e67b2bf732
Apply uninlined_format-args to clippy_lints
...
This change is needed for the uninlined_format-args lint to be merged.
See https://github.com/rust-lang/rust-clippy/pull/9233
2022-09-23 13:42:59 -04:00
Vadim Petrochenkov
9136096629
rustc: Parameterize ty::Visibility over used ID
...
It allows using `LocalDefId` instead of `DefId` when possible, and also encode cheaper `Visibility<DefIndex>` into metadata.
2022-09-07 13:35:41 +04:00
Philipp Krones
dc29cfb8d5
Merge commit ' 2b2190cb56' into clippyup
2022-08-11 19:42:16 +02:00
Jason Newcomb
670efd5720
Don't lint default_trait_access in proc-macro expansions
2022-08-07 21:55:08 -04:00
flip1995
f8f9d01c2a
Merge commit ' d7b5cbf065' into clippyup
2022-06-16 17:39:06 +02:00
Serial
9aeed6b9bf
Improve lint doc consistency
2022-06-05 16:03:18 -04:00
xFrednet
4587b6628d
Merge 'rust-clippy/master' into clippyup
2022-05-21 13:24:00 +02:00
xFrednet
03960ebab2
Replace #[allow] with #[expect] in Clippy
2022-05-07 17:39:21 +02:00
Nicholas Nethercote
e110231260
Improve AdtDef interning.
...
This commit makes `AdtDef` use `Interned`. Much the commit is tedious
changes to introduce getter functions. The interesting changes are in
`compiler/rustc_middle/src/ty/adt.rs`.
2022-03-11 13:31:24 +11:00
flip1995
35020280a0
Merge commit ' e329249b6a' into clippyup
2022-02-26 14:26:21 +01:00
flip1995
fb0142ae41
Merge commit ' 97a5daa659' into clippyup
2022-01-13 13:18:19 +01:00
Aaron Hill
dda2aef64f
Store a Symbol instead of an Ident in VariantDef/FieldDef
...
The field is also renamed from `ident` to `name. In most cases,
we don't actually need the `Span`. A new `ident` method is added
to `VariantDef` and `FieldDef`, which constructs the full `Ident`
using `tcx.def_ident_span()`. This method is used in the cases
where we actually need an `Ident`.
This makes incremental compilation properly track changes
to the `Span`, without all of the invalidations caused by storing
a `Span` directly via an `Ident`.
2022-01-11 10:16:22 -05:00
flip1995
8fea1d94f3
Merge commit ' a5d597637d' into clippyup
2021-12-06 12:33:31 +01:00
flip1995
7631fc5d82
Merge commit ' 91496c2ac6' into clippyup
2021-10-21 13:11:36 +02:00
flip1995
2b20f49841
Merge commit ' 0cce3f643b' into clippyup
2021-07-29 12:16:06 +02:00
flip1995
ebe52869a3
Merge commit ' 61eb38aeda' into clippyup
2021-07-01 18:17:38 +02:00
flip1995
d605882023
Merge commit ' b71f340560' into clippyup
2021-05-06 12:20:44 +02:00
flip1995
f6d1f368db
Merge commit ' b40ea209e7' into clippyup
2021-04-08 17:50:13 +02:00
flip1995
9f6b5de7de
Merge commit ' 0e87918536' into clippyup
2021-03-25 19:29:11 +01:00
Cameron Steffen
2454408318
Remove qpath_res util function
2021-01-18 14:54:58 -06:00
flip1995
488153ff2f
Merge commit ' 953f024793' into clippyup
2021-01-15 10:56:44 +01:00
flip1995
ba4bf4f9c5
Merge commit ' 1fcc74cc9e' into clippyup
2021-01-02 16:29:43 +01:00
flip1995
8eca423ea1
Merge commit ' c1664c50b2' into clippyup
2020-12-06 15:01:03 +01:00
flip1995
34244190d4
Merge commit ' b20d4c155d' into clippyup
2020-11-05 14:29:48 +01:00