Mark Rousskov
|
154a09dd91
|
Adjust cfgs
|
2022-08-12 16:28:15 -04:00 |
|
Matthias Krüger
|
8237efc52d
|
Rollup merge of #100392 - nnethercote:simplify-visitors, r=cjgillot
Simplify visitors
By removing some unused arguments.
r? `@cjgillot`
|
2022-08-11 22:53:08 +02:00 |
|
Matthias Krüger
|
e221aafae6
|
Rollup merge of #100307 - nnethercote:fix-96847, r=cjgillot
Fix #96847
r? `@petrochenkov`
|
2022-08-11 22:53:05 +02:00 |
|
Nicholas Nethercote
|
ce78042a42
|
Avoid lowering a MacArgs::Eq twice.
Fixes #96847.
|
2022-08-11 21:06:40 +10:00 |
|
Nicholas Nethercote
|
232bd80130
|
Simplify rustc_ast::visit::Visitor::visit_poly_trait_ref .
It is passed an argument that is never used.
|
2022-08-11 11:10:01 +10:00 |
|
Nicholas Nethercote
|
8c5303898e
|
Simplify rustc_hir::intravisit::Visitor::visit_variant_data .
It has four arguments that are never used. This avoids lots of argument
passing in functions that feed into `visit_variant_data`.
|
2022-08-11 10:54:01 +10:00 |
|
Camille GILLOT
|
9701845287
|
Do not consider method call receiver as an argument in AST.
|
2022-08-10 18:34:54 +02:00 |
|
Santiago Pastorino
|
750a04ea7f
|
Add docs for get_remapped_def_id
|
2022-08-09 16:39:02 -03:00 |
|
Santiago Pastorino
|
457ff7c56c
|
Iterate def_ids map backwards to try first the latest mappings (it's a stack)
|
2022-08-09 16:33:19 -03:00 |
|
Camille GILLOT
|
f6af4efec5
|
Use start_point instead of next_point to point to elided lifetime ampersand.
|
2022-08-07 14:35:11 +02:00 |
|
Santiago Pastorino
|
4170d7390b
|
Fix typo
|
2022-08-04 15:13:47 -03:00 |
|
Santiago Pastorino
|
065e497630
|
Improve opt_local_def_id docs
|
2022-08-04 15:13:44 -03:00 |
|
Santiago Pastorino
|
bf1c7da147
|
Improve record_def_id_remap docs
|
2022-08-04 12:47:19 -03:00 |
|
Santiago Pastorino
|
ece52451f6
|
Do not collect lifetimes with Infer resolution
|
2022-08-04 12:40:00 -03:00 |
|
Santiago Pastorino
|
45991f9175
|
Use span_bug instead of panic
|
2022-08-04 12:07:03 -03:00 |
|
Santiago Pastorino
|
5e71659983
|
Add docs to record_elided_anchor
|
2022-08-04 11:27:02 -03:00 |
|
Santiago Pastorino
|
f8b1b2bdfb
|
Extract record_elided_anchor
|
2022-08-04 11:27:02 -03:00 |
|
Santiago Pastorino
|
9f10f589a7
|
Move new_remapping inside with_hir_id_owner
|
2022-08-04 11:27:02 -03:00 |
|
Santiago Pastorino
|
1ece866cf1
|
Add documentation for create_lifetime_defs
|
2022-08-04 11:27:02 -03:00 |
|
Santiago Pastorino
|
2f353d1f72
|
Add more debug calls
|
2022-08-04 11:27:01 -03:00 |
|
Santiago Pastorino
|
cab67404a4
|
Add documentation about lifetime args
|
2022-08-04 11:27:01 -03:00 |
|
Santiago Pastorino
|
a3bfdc77a7
|
Add documentation about lifetime_defs
|
2022-08-04 11:27:01 -03:00 |
|
Santiago Pastorino
|
9c7de6fb3c
|
Move hir_bounds after lifetime_defs
|
2022-08-04 11:27:01 -03:00 |
|
Santiago Pastorino
|
3f7db370ef
|
captures -> collected_lifetimes
|
2022-08-04 11:27:00 -03:00 |
|
Santiago Pastorino
|
12fa3393a5
|
Move lifetimes_in_bounds call to outside with_hir_id_owner block in lower_async_fn_ret_ty
|
2022-08-04 11:27:00 -03:00 |
|
Santiago Pastorino
|
4b9b5838ac
|
Move lifetimes_in_bounds call to outside with_hir_id_owner block in lower_opaque_impl_trait
|
2022-08-04 11:27:00 -03:00 |
|
Santiago Pastorino
|
76b518fc83
|
Document what collected_lifetimes vec containts
|
2022-08-04 11:27:00 -03:00 |
|
Santiago Pastorino
|
d85720a083
|
Document lower_opaque_impl_trait
|
2022-08-04 11:26:59 -03:00 |
|
Santiago Pastorino
|
6289d0eb53
|
with_lifetime_binder is now lower_lifetime_binder and doesn't need a closure
|
2022-08-04 11:26:59 -03:00 |
|
Santiago Pastorino
|
11e00f502a
|
Add comments on with_remapping
|
2022-08-04 11:26:59 -03:00 |
|
Santiago Pastorino
|
c946cdceb4
|
Document opt_local_def_id
|
2022-08-04 11:26:59 -03:00 |
|
Santiago Pastorino
|
966269a464
|
Document generics_def_id_map field and record/get methods on it
|
2022-08-04 11:26:58 -03:00 |
|
Santiago Pastorino
|
78585098b5
|
Add comments about lifetime collect and create lifetime defs for RPITs
|
2022-08-04 11:26:58 -03:00 |
|
Santiago Pastorino
|
40bcbed3c7
|
Avoid explicitly handling res when is not needed
|
2022-08-04 11:26:58 -03:00 |
|
Santiago Pastorino
|
cd3c388418
|
create_and_capture_lifetime_defs -> create_lifetime_defs
|
2022-08-04 11:26:57 -03:00 |
|
Santiago Pastorino
|
13800624de
|
Remove captured_lifetimes and LifetimeCaptureContext and make create_lifetime_defs return the captures
|
2022-08-04 11:26:57 -03:00 |
|
Santiago Pastorino
|
1d6cebfd6b
|
Implement def_id based remapping
|
2022-08-04 11:26:57 -03:00 |
|
Santiago Pastorino
|
f0db1d68e6
|
Remove local_def_id from captured_lifetimes
|
2022-08-04 11:26:57 -03:00 |
|
Santiago Pastorino
|
2d826e27c4
|
Capture things as Lifetime object to simplify things
|
2022-08-04 11:26:57 -03:00 |
|
Santiago Pastorino
|
f6b4dd1541
|
Create new_mapping local structure and avoid checking def_ids on captures
|
2022-08-04 11:26:56 -03:00 |
|
Santiago Pastorino
|
6c6a81e48e
|
Remove binders_to_ignore from LifetimeCaptureContext
|
2022-08-04 11:26:56 -03:00 |
|
Santiago Pastorino
|
95158fdf3a
|
No need to store parent_def_id in LifetimeCaptureContext
|
2022-08-04 11:26:56 -03:00 |
|
Santiago Pastorino
|
552f6b0f81
|
No need to check binders to ignore on new_named_lifetime_with_res's LifetimeRes::Fresh
|
2022-08-04 11:26:56 -03:00 |
|
Santiago Pastorino
|
6041ed0775
|
No need to check binders to ignore on new_named_lifetime_with_res's LifetimeRes::Param
|
2022-08-04 11:26:55 -03:00 |
|
Santiago Pastorino
|
d9e6364755
|
new_named_lifetime_with_res's LifetimeRes::Fresh should have created def_id already
|
2022-08-04 11:26:55 -03:00 |
|
Santiago Pastorino
|
3030ab3074
|
new_named_lifetime_with_res's LifetimeRes::Param should have created def_id already
|
2022-08-04 11:26:55 -03:00 |
|
Santiago Pastorino
|
14ea17858d
|
Fail if LifetimeRes is Infer when creating def ids for lifetimes copies
|
2022-08-04 11:26:55 -03:00 |
|
Santiago Pastorino
|
c390bda356
|
Record RPITs elided lifetimes in Rptr Tys
|
2022-08-04 11:26:55 -03:00 |
|
Santiago Pastorino
|
1802d45b12
|
Record RPITs elided lifetimes in path segments
|
2022-08-04 11:26:54 -03:00 |
|
Santiago Pastorino
|
81c4d2371a
|
Restructure visit_ty in a more clear way
|
2022-08-04 11:26:54 -03:00 |
|