lcnr
bb93c23c08
use TypingEnv when no infcx is available
...
the behavior of the type system not only depends on the current
assumptions, but also the currentnphase of the compiler. This is
mostly necessary as we need to decide whether and how to reveal
opaque types. We track this via the `TypingMode`.
2024-11-18 10:38:56 +01:00
Philipp Krones
1ceaa90413
Merge commit '786fbd6d683933cd0e567fdcd25d449a69b4320c' into clippy-subtree-update
2024-11-14 19:35:26 +01:00
Philipp Krones
6ced8c33c0
Merge commit 'f712eb5cdccd121d0569af12f20e6a0fabe4364d' into clippy-subtree-update
2024-11-07 22:37:01 +01:00
Michael Goulet
efeed550c4
Remove BorrowKind glob, make names longer
2024-11-04 04:45:52 +00:00
Philipp Krones
fea5e77da1
Merge commit 'a109190d7060236e655fc75533373fa274ec5343' into clippy-subtree-update
2024-10-18 13:44:06 +02:00
Philipp Krones
b61fcbee76
Merge commit '7901289135257ca0fbed3a5522526f95b0f5edba' into clippy-subtree-update
2024-09-24 11:58:04 +02:00
GnomedDev
8fc9e67cf5
[Clippy] Swap float_equality_without_abs to use diagnostic items instead of paths
2024-09-19 13:13:20 +01:00
Jason Newcomb
173d5a6af0
Merge commit '0f8eabd6231366bfc1bb1464601297c2d48f8f68' into clippyup
2024-08-24 18:33:44 -04:00
Philipp Krones
1ac76a2062
Merge commit 'cb806113e0f83a8f9b47d35b453b676543bcc40e' into clippy-subtree-update
2024-08-08 19:13:50 +02:00
Philipp Krones
4e6851e50b
Merge commit '37f4fbb92913586b73a35772efd00eccd1cbbe13' into clippy-subtree-update
2024-07-25 18:29:17 +02:00
Philipp Krones
c1fd25d0aa
Merge commit 'b794b8e08c16517a941dc598bb1483e8e12a8592' into clippy-subtree-update
2024-07-11 15:44:03 +02:00
Trevor Gross
8cde354f0b
Resolve Clippy f16 and f128 unimplemented!/FIXMEs
...
This removes the ICE codepaths for `f16` and `f128` in Clippy.
`rustc_apfloat` is used as a dependency for the parsing of these types,
since their `FromStr` implementation will not be available in the
standard library for a while.
2024-06-19 13:30:21 -04:00
Philipp Krones
3bff119f63
Merge commit '3e5a02b13b1244545454752c6629b767522a44b1' into clippy-subtree-update
2024-06-13 12:30:48 +02:00
bors
51347ba3c7
Auto merge of #125764 - flip1995:clippy-subtree-update, r=Manishearth
...
Clippy subtree update
r? `@Manishearth`
2024-05-30 16:46:31 +00:00
Philipp Krones
f67f72695a
Merge commit 'c9139bd546d9cd69df817faeab62c5f9b1a51337' into clippy-subtree-update
2024-05-30 10:49:05 +02:00
Oli Scherer
7f66e567b2
Don't require visit_body to take a lifetime that must outlive the function call
2024-05-29 10:04:08 +00:00
Michael Goulet
e65cefcf6f
Propagate errors rather than using return_if_err
2024-05-12 12:50:18 -04:00
Michael Goulet
db193c1c9d
Make LateCtxt be a type info delegate for EUV for clippy
2024-05-12 12:11:25 -04:00
Michael Goulet
dfc9c9132b
Inline MemCategorization into ExprUseVisitor
2024-05-12 11:52:13 -04:00
Michael Goulet
51145a20bf
Make builtin_deref just return a Ty
2024-05-09 22:55:00 -04:00
Philipp Krones
80c6f8ff7b
Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update
2024-05-02 17:26:44 +02:00
Nicholas Nethercote
0aea3edb38
Avoid lots of hir::HirId{,Map,Set} qualifiers.
...
Because they're a bit redundant.
2024-04-16 16:29:15 +10:00
Philipp Krones
0ae4a048c6
Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update
2024-04-04 19:52:55 +02:00
Philipp Krones
7e83df4068
Merge commit '93f0a9a91f58c9b2153868f458402155fb6265bb' into clippy-subtree-update
2024-03-07 17:19:29 +01:00
Philipp Krones
7be6e2178e
Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update
2024-02-27 15:50:17 +01:00
Vadim Petrochenkov
fc8f6628ab
hir: Remove hir::Map::{opt_parent_id,parent_id,get_parent,find_parent}
2024-02-10 12:24:46 +03:00
Philipp Krones
f3b3d23416
Merge commit '60cb29c5e4f9772685c9873752196725c946a849' into clippyup
2024-02-08 20:24:42 +01:00
Markus Reiter
a51fc2a80e
Fix NonZero clippy lints.
2024-01-27 16:38:57 +01:00
Philipp Krones
798865c593
Merge commit '66c29b973b3b10278bd39f4e26b08522a379c2c9' into clippy-subtree-update
2024-01-25 19:17:36 +01:00
Josh Stone
eb42f3e703
Pack the u128 in LitKind::Int
2024-01-19 20:10:39 -08:00
Philipp Krones
aa220c7ee7
Merge commit '26ac6aab023393c94edf42f38f6ad31196009643'
2024-01-11 17:27:03 +01:00
Philipp Krones
3596d44988
Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup
2023-12-16 14:12:50 +01:00
Philipp Krones
c9a43b18f1
Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync
2023-12-01 18:21:58 +01:00
Philipp Krones
6246f0446a
Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup
2023-11-16 19:13:24 +01:00
bors
2d9af160af
Auto merge of #117507 - nnethercote:rustc_span, r=Nilstrieb
...
`rustc_span` cleanups
Just some things I found while looking over this crate.
r? `@oli-obk`
2023-11-03 14:57:40 +00:00
Philipp Krones
77c1e3aaa1
Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup
2023-11-02 17:35:56 +01:00
Nicholas Nethercote
e1ec2d5cc9
Minimize pub usage in source_map.rs.
...
Most notably, this commit changes the `pub use crate::*;` in that file
to `use crate::*;`. This requires a lot of `use` items in other crates
to be adjusted, because everything defined within `rustc_span::*` was
also available via `rustc_span::source_map::*`, which is bizarre.
The commit also removes `SourceMap::span_to_relative_line_string`, which
is unused.
2023-11-02 19:35:00 +11:00
Philipp Krones
8e7d1678c4
Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup
2023-10-21 14:16:11 +02:00
Philipp Krones
8ebed4cc1a
Merge commit 'b105fb4c39bc1a010807a6c076193cef8d93c109' into clippyup
2023-10-06 17:35:45 +02:00
Jason Newcomb
9de3e6c928
Add more diagnostic items for clippy
2023-10-05 18:21:47 -04:00
Oli Scherer
238dc2828e
Prevent promotion of const fn calls in inline consts
2023-09-21 09:00:22 +00:00
Philipp Krones
471469d30f
Merge commit '98363cbf6a7c3f8b571a7d92a3c645bb4376e4a6' into clippyup
2023-09-12 18:44:06 +02:00
Caio
b3136a874d
[clippy] Use symbols intended for arithmetic_side_effects
2023-09-01 10:28:55 +02:00
Philipp Krones
f730a2655a
Merge commit '1e8fdf492808a25d78a97e1242b835ace9924e4d' into clippyup
2023-08-11 14:05:13 +02:00
Philipp Krones
b0e64a9c09
Merge commit '5436dba826191964ac1d0dab534b7eb6d4c878f6' into clippyup
2023-07-31 23:53:53 +02:00
Matthias Krüger
f54263af58
Rollup merge of #112655 - WaffleLapkin:must_use_map_or, r=workingjubilee
...
Mark `map_or` as `#[must_use]`
I don't know what else to say.
r? libs
2023-07-30 14:25:08 +02:00
Maybe Waffle
0c93e30956
Mark map_or as #[must_use]
2023-07-30 10:22:23 +00:00
Philipp Krones
d6d530fd0b
Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup
2023-07-17 10:22:32 +02:00
Philipp Krones
cb3ecf7b79
Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup
2023-07-02 14:59:02 +02:00
Urgau
edb3266b91
Drop uplifted clippy:cmp_nan
2023-06-10 11:13:01 +02:00