Lzu Tao
a5fd2c98bd
Remove duplicated peel_middle_ty_refs
...
TODO: Should we move `ty::peel_mid_ty_refs_is_mutable` to super module too?
2024-07-17 12:51:08 +07:00
bors
0f4035fde3
Auto merge of #12976 - tesuji:fix-explicit_auto_deref, r=xFrednet
...
Fix some false-positive cases of `explicit_auto_deref`
changelog: [`explicit_auto_deref`] Fix some false-positive cases
Fix part of #9841
Fix #12969
r? xFrednet
2024-07-03 18:24:23 +00:00
Lzu Tao
c4c41d1352
Fix 12969 and fix 9841
2024-07-03 21:25:43 +07:00
Lzu Tao
388de386f5
Make it easier to print debugging with Debug
2024-07-03 21:09:58 +07:00
Philipp Krones
e9e7a815a7
Merge remote-tracking branch 'upstream/master' into rustup
2024-06-27 18:49:59 +02:00
David Tolnay
35ec4eb354
Rename the 2 unambiguous precedence levels to PREC_UNAMBIGUOUS
2024-06-23 18:31:47 -07:00
Jason Newcomb
a002f93e51
expr_use_ctxt
changes:
...
* Delay the parsing of the use node
* Mark when the `SyntaxContext` changes rather than return `None`
* Return a default value if the HIR tree is broken rather than `None`
2024-06-16 18:00:21 -04: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
9523b3fbf0
Rename Generics::params to Generics::own_params
2024-05-09 20:58:46 -04:00
Philipp Krones
80c6f8ff7b
Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update
2024-05-02 17:26:44 +02:00
Philipp Krones
a5aaf33422
Merge commit 'ca3b393750ee8d870bf3215dcf6509cafa5c0445' into clippy-subtree-update
2024-04-18 17:48:52 +02:00
Jules Bertholet
876d5f00a0
Rename BindingAnnotation
to BindingMode
2024-04-17 09:34:39 -04:00
Oli Scherer
c8388033f3
Actually create ranged int types in the type system.
2024-04-08 12:02:19 +00:00
Oli Scherer
89b48a2e22
Thread pattern types through the HIR
2024-04-08 12:00:07 +00:00
Philipp Krones
7be6e2178e
Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update
2024-02-27 15:50:17 +01:00
Frank King
05101ffe5b
Lower anonymous structs or unions to HIR
2024-02-12 12:47:23 +08: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
Michael Goulet
7895b98712
Add CoroutineClosure to TyKind, AggregateKind, UpvarArgs
2024-02-06 02:22:58 +00:00
Bryanskiy
09d024117e
Delegation implementation: step 1
2024-01-12 14:11:16 +03:00
zetanumbers
fe37cc1d97
Move some methods from tcx.hir()
to tcx
...
Renamings:
- find -> opt_hir_node
- get -> hir_node
- find_by_def_id -> opt_hir_node_by_def_id
- get_by_def_id -> hir_node_by_def_id
Fix rebase changes using removed methods
Use `tcx.hir_node_by_def_id()` whenever possible in compiler
Fix clippy errors
Fix compiler
Apply suggestions from code review
Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
Add FIXME for `tcx.hir()` returned type about its removal
Simplify with with `tcx.hir_node_by_def_id`
2023-12-12 06:40:29 -08:00
Philipp Krones
c9a43b18f1
Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync
2023-12-01 18:21:58 +01:00
lcnr
8c6c542443
rename bound region instantiation
...
- `erase_late_bound_regions` -> `instantiate_bound_regions_with_erased`
- `replace_late_bound_regions_X` -> `instantiate_bound_regions_X`
2023-11-17 09:29:48 +00:00
Philipp Krones
6246f0446a
Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup
2023-11-16 19:13:24 +01:00
Philipp Krones
77c1e3aaa1
Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup
2023-11-02 17:35:56 +01:00
Oli Scherer
868e513935
s/Generator/Coroutine/
2023-10-20 21:10:38 +00:00
Arthur Lafrance
9ee26d078d
fix lint failures in clippy
2023-10-16 19:50:31 -07:00
Philipp Krones
772296c50e
Merge commit '7671c283a50b5d1168841f3014b14000f01dd204' into clippyup
2023-09-25 11:28:58 +02:00
Camille GILLOT
e2669b27f3
Remove GeneratorWitness and rename GeneratorWitnessMIR.
2023-09-23 13:47:30 +00:00
Philipp Krones
471469d30f
Merge commit '98363cbf6a7c3f8b571a7d92a3c645bb4376e4a6' into clippyup
2023-09-12 18:44:06 +02:00
Esteban Küber
89fdc3e383
Move scrutinee HirId
into MatchSource::TryDesugar
2023-08-14 21:43:56 +00:00
Matthias Krüger
261837c841
Rollup merge of #114505 - ouz-a:cleanup_mir, r=RalfJung
...
Add documentation to has_deref
Documentation of `has_deref` needed some polish to be more clear about where it should be used and what's it's purpose.
cc https://github.com/rust-lang/rust/issues/114401
r? `@RalfJung`
2023-08-06 17:26:29 +02:00
ouz-a
44cd3bcbba
cleanup misinformation regarding has_deref
2023-08-06 17:29:09 +03: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
Michael Goulet
716c552632
Migrate predicates_of and caller_bounds to Clause
2023-06-26 23:12:03 +00:00
Michael Goulet
b2c7ce8908
s/Clause/ClauseKind
2023-06-19 14:57:42 +00:00
Oli Scherer
5777494f99
Add AliasKind::Weak
for type aliases.
...
Only use it when the type alias contains an opaque type.
Also does wf-checking on such type aliases.
2023-06-16 19:39:48 +00:00
lcnr
739530a03c
EarlyBinder::new -> EarlyBinder::bind
2023-05-29 13:46:10 +02:00
Kyle Matsuda
cfcb7fc859
Replace EarlyBinder(x) with EarlyBinder::new(x)
2023-05-28 10:44:50 -06:00
León Orell Valerian Liehr
2bc479a201
IAT: Introduce AliasKind::Inherent
2023-05-04 16:59:10 +02:00
Philipp Krones
cf8a67d9ad
Merge commit '3c06e0b1ce003912f8fe0536d3a7fe22558e38cf' into clippyup
2023-03-10 10:53:50 +01:00
bors
0966f59c78
Auto merge of #108474 - Jarcho:clippyup, r=Manishearth
...
Update Clippy
Seems like `@flip1995` so this is a couple days late.
r? `@Manishearth`
2023-02-26 18:45:47 +00:00
Jason Newcomb
0413fb35ba
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
2023-02-25 19:28:50 -05:00
Michael Goulet
9fd0a415bb
Make clippy happy
2023-02-25 19:46:36 +00:00
Alan Egerton
430c4ab7ff
Remove type-traversal trait aliases
2023-02-22 17:04:58 +00:00