Philipp Krones
81fe8dc084
Merge remote-tracking branch 'upstream/master' into rustup
2023-09-25 10:26:11 +02:00
bors
33f084ef78
Auto merge of #11544 - Alexendoo:hir-ty-to-ty, r=Jarcho
...
Remove most usage of `hir_ty_to_ty`
Removes the usages where there's a suitable query or the type was already available elsewhere. The remaining cases would all require more involved changes
changelog: none
r? `@Jarcho`
2023-09-21 15:25:36 +00:00
Ralf Jung
2ea6ac5673
rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const
2023-09-21 08:12:30 +02:00
Alex Macleod
01c25a8eb6
Remove most usage of hir_ty_to_ty
2023-09-20 14:05:00 +00:00
y21
558ae4c6a8
[redundant_guards
]: lint if the pattern is on the LHS
2023-09-17 15:34:32 +02:00
Chen Chen
67f0ba4af8
Update clippy_lints/src/matches/redundant_guards.rs
...
fix typo
Co-authored-by: Alejandra González <blyxyas@gmail.com>
2023-09-16 22:12:40 +08:00
mojave2
8d3bbb0964
handle the byref binding in the struct pattern
2023-09-14 14:57:05 +08:00
Ralf Jung
5cd391c4ad
make the set of methods between our two Const types more consistent
2023-09-13 07:29:34 +02:00
mojave2
7f870201d3
add byref
checking for the guard's local
2023-09-13 11:13:51 +08:00
Esteban Küber
89fdc3e383
Move scrutinee HirId
into MatchSource::TryDesugar
2023-08-14 21:43:56 +00:00
Philipp Krones
f730a2655a
Merge commit '1e8fdf492808a25d78a97e1242b835ace9924e4d' into clippyup
2023-08-11 14:05:13 +02:00
Nilstrieb
ed0dfed24f
Improve spans for indexing expressions
...
Indexing is similar to method calls in having an arbitrary
left-hand-side and then something on the right, which is the main part
of the expression. Method calls already have a span for that right part,
but indexing does not. This means that long method chains that use
indexing have really bad spans, especially when the indexing panics and
that span in coverted into a panic location.
This does the same thing as method calls for the AST and HIR, storing an
extra span which is then put into the `fn_span` field in THIR.
2023-08-04 13:17:39 +02:00
Philipp Krones
b0e64a9c09
Merge commit '5436dba826191964ac1d0dab534b7eb6d4c878f6' into clippyup
2023-07-31 23:53:53 +02:00
Philipp Krones
d6d530fd0b
Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup
2023-07-17 10:22:32 +02:00
Mahdi Dibaiee
fdb2e363d3
refactor(rustc_middle): Substs -> GenericArg
2023-07-14 13:27:35 +01:00
Philipp Krones
cb3ecf7b79
Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup
2023-07-02 14:59:02 +02:00
Maybe Waffle
555bd985d2
Support hir::ExprKind::Become
in clippy
2023-06-26 08:56:32 +00:00
Philipp Krones
e6dc0efc00
Merge commit '30448e8cf98d4754350db0c959644564f317bc0f' into clippyup
2023-06-02 11:41:57 +02:00
Philipp Krones
b76b0aeb63
Merge commit '435a8ad86c7a33bd7ffb91c59039943408d3b6aa' into clippyup
2023-05-20 15:39:26 +02:00
Nilstrieb
fc126379be
Remove LangItems::require
...
It's just a short wrapper used by `tcx.require_lang_item`. Deleting it
gives us a negative diff.
2023-05-16 19:53:38 +02:00
bors
5889ecd14f
Auto merge of #111255 - flip1995:clippyup, r=Manishearth
...
Update Clippy
r? `@Manishearth`
2023-05-05 21:50:14 +00:00
Philipp Krones
7e9abb311d
Merge commit '371120bdbf58a331db5dcfb2d9cddc040f486de8' into clippyup
2023-05-05 17:45:49 +02:00
Deadbeef
37127b8d70
initial step towards implementing C string literals
2023-05-02 10:30:09 +00:00
Philipp Krones
a1b75c5108
Merge commit 'a3ed905928a03b6e433d0b429190bf3a847128b3' into clippyup
2023-04-23 13:28:56 +02:00
DrMeepster
68c4776b46
offset_of
2023-04-21 02:14:02 -07: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
Philipp Krones
8df896c076
Merge commit 'd5e2a7aca55ed49fc943b7a07a8eba05ab5a0079' into clippyup
2023-03-24 14:26:19 +01:00
clubby789
f2eddc5924
Remove box expressions from HIR
2023-03-14 17:18:26 +00:00
Philipp Krones
cf8a67d9ad
Merge commit '3c06e0b1ce003912f8fe0536d3a7fe22558e38cf' into clippyup
2023-03-10 10:53:50 +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
Michael Goulet
9fd0a415bb
Make clippy happy
2023-02-25 19:46:36 +00: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 '0f7558148c22e53cd4608773b56cdfa50dcdeac3' into clippyup
2023-02-10 14:01:19 +01:00
Michael Goulet
70f6c478f6
get_parent and find_parent
2023-01-04 00:43:13 +00:00
Michael Goulet
73d293fb6d
rename get_parent_node to parent_id
2023-01-04 00:43:13 +00:00
Philipp Krones
4ccafea92d
Merge commit '4f3ab69ea0a0908260944443c739426cc384ae1a' into clippyup
2022-12-29 14:28:34 +01:00
bors
17a092f467
Auto merge of #105160 - nnethercote:rm-Lit-token_lit, r=petrochenkov
...
Remove `token::Lit` from `ast::MetaItemLit`.
Currently `ast::MetaItemLit` represents the literal kind twice. This PR removes that redundancy. Best reviewed one commit at a time.
r? `@petrochenkov`
2022-12-12 05:16:50 +00:00
Nicholas Nethercote
6481d37bb9
Add StrStyle
to ast::LitKind::ByteStr
.
...
This is required to distinguish between cooked and raw byte string
literals in an `ast::LitKind`, without referring to an adjacent
`token::Lit`. It's a prerequisite for the next commit.
2022-12-02 10:38:58 +11:00
Philipp Krones
d05e2865a0
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
bors
b33afd61ed
Auto merge of #104688 - flip1995:clippyup, r=Manishearth,flip1995
...
Update Clippy
r? `@Manishearth`
Sorry for taking so long. There were so many blockers and so little time. This situation should be mitigated with #104007 in the future.
2022-11-22 17:09:06 +00:00
Philipp Krones
46c5a5d234
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
2022-11-21 20:51:52 +01:00
Vadim Petrochenkov
ae8f75c6a3
Unreserve braced enum variants in value namespace
2022-11-21 22:40:06 +03:00
Deadbeef
a09423f8c8
Rm diagnostic item, use lang item
2022-11-18 06:16:20 +00:00
flip1995
cd0bb7de01
Merge commit '4f142aa1058f14f153f8bfd2d82f04ddb9982388' into clippyup
2022-10-23 15:18:45 +02:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
lcnr
e5ce6d18df
rustc_typeck to rustc_hir_analysis
2022-09-27 10:37:23 +02:00
bors
985afe07f7
Auto merge of #100640 - reitermarkus:socket-display-buffer, r=thomcc
...
Use `DisplayBuffer` for socket addresses.
Continuation of https://github.com/rust-lang/rust/pull/100625 for socket addresses.
Renames `net::addr` to `net::addr::socket`, `net::ip` to `net::addr::ip` and `net::ip::display_buffer::IpDisplayBuffer` to `net::addr::display_buffer::DisplayBuffer`.
2022-09-13 06:41:37 +00:00
Markus Reiter
64a42db51a
Simplify clippy
fix.
2022-09-12 19:46:51 +02:00
Markus Reiter
c0e249ce67
Fix clippy.
2022-09-12 19:04:17 +02:00