Camille GILLOT
67727aa7c3
Reduce use of local_def_id_to_hir_id.
2022-01-15 21:26:25 +01:00
Camille GILLOT
60064726ae
Return a LocalDefId in get_parent_item.
2022-01-15 21:26:20 +01:00
Gary Guo
48258ffe5a
Remove region from UpvarCapture and move it to CapturedPlace
...
Region info is completely unnecessary for upvar capture kind computation
and is only needed to create the final upvar tuple ty. Doing so makes
creation of UpvarCapture very cheap and expose further cleanup opportunity.
2022-01-07 22:55:34 +00:00
Gary Guo
3698e03fb6
Remove span from UpvarCapture::ByValue
...
This span is unused and is superseded by capture_kind_expr_id in CaptureInfo
2022-01-07 22:54:28 +00:00
Lucas Kent
e57307560e
get_mut_span_in_struct_field uses span.between
2021-12-18 13:00:08 +11:00
Lucas Kent
97bf7b934e
Improve suggestion to change struct field to &mut
2021-12-17 13:20:40 +11:00
Dániel Buga
e837101890
Remove in_band_lifetimes from borrowck
2021-12-15 08:39:21 +01:00
Mark Rousskov
971c549ca3
re-format with new rustfmt
2021-11-30 13:08:41 -05:00
Michael Goulet
718a3b1f2d
Fix issue 91206
2021-11-25 16:34:30 +00:00
Cameron Steffen
9c83f8c4d1
Simplify for loop desugar
2021-11-21 08:15:21 -06:00
Yuki Okushi
bf7c32a447
Fix ICE with let...else and ref mut
2021-10-17 07:12:22 +09:00
Matthias Krüger
e6f77a1787
clippy::complexity fixes
2021-10-08 20:07:44 +02:00
Camille GILLOT
c5fc2609f0
Rename rustc_mir to rustc_const_eval.
2021-09-07 20:46:26 +02:00
Camille GILLOT
31a61ccc38
Move rustc_mir::borrow_check to new crate rustc_borrowck.
2021-09-07 00:29:22 +02:00