about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2022-08-04Implement def_id based remappingSantiago Pastorino-107/+133
2022-08-04Remove local_def_id from captured_lifetimesSantiago Pastorino-22/+17
2022-08-04Capture things as Lifetime object to simplify thingsSantiago Pastorino-49/+59
2022-08-04Create new_mapping local structure and avoid checking def_ids on capturesSantiago Pastorino-34/+48
2022-08-04Remove binders_to_ignore from LifetimeCaptureContextSantiago Pastorino-16/+3
2022-08-04No need to store parent_def_id in LifetimeCaptureContextSantiago Pastorino-9/+9
2022-08-04No need to check binders to ignore on new_named_lifetime_with_res's ↵Santiago Pastorino-8/+3
LifetimeRes::Fresh
2022-08-04No need to check binders to ignore on new_named_lifetime_with_res's ↵Santiago Pastorino-8/+3
LifetimeRes::Param
2022-08-04new_named_lifetime_with_res's LifetimeRes::Fresh should have created def_id ↵Santiago Pastorino-11/+2
already
2022-08-04new_named_lifetime_with_res's LifetimeRes::Param should have created def_id ↵Santiago Pastorino-11/+2
already
2022-08-04Fail if LifetimeRes is Infer when creating def ids for lifetimes copiesSantiago Pastorino-1/+1
2022-08-04Record RPITs elided lifetimes in path segmentsSantiago Pastorino-1/+1
2022-08-04Skip lifetimes in binders when visitingSantiago Pastorino-55/+37
2022-08-04Move LifetimeCollectVisitor to rustc_ast_loweringSantiago Pastorino-2/+5
2022-08-04Completely remove captures flagSantiago Pastorino-91/+52
2022-08-04Do not execute captures code when lowering lifetimes as GenericArgSantiago Pastorino-1/+1
2022-08-04Do not execute captures code for async fnsSantiago Pastorino-1/+1
2022-08-04There's no need to check binders_to_ignore using the old code anymoreSantiago Pastorino-10/+8
2022-08-04Explicitly gather lifetimes and definitions for bare async fnsSantiago Pastorino-39/+30
2022-08-04Extract create_and_capture_lifetime_defs functionSantiago Pastorino-74/+81
2022-08-04Remove NEW_COLLECT_LIFETIMES env varSantiago Pastorino-104/+82
2022-08-04Add debug! callsSantiago Pastorino-0/+5
2022-08-04Explicitly gather lifetimes and definitions in RPITSantiago Pastorino-41/+147
2022-08-04Unroll while_capturing_lifetimes into lower_opaque_impl_traitSantiago Pastorino-5/+15
2022-08-04Add captures flag to capture or not while loweringSantiago Pastorino-71/+109
2022-08-04Make lower_generic_bound_predicate receive AST bounds instead of HIR boundsSantiago Pastorino-2/+2
2022-08-04Remove old docs on lower_async_fn_ret_tySantiago Pastorino-2/+0
2022-07-26Replace LifetimeRes::Anonymous by LifetimeRes::Infer.Camille GILLOT-19/+1
2022-07-26Remove the distinction between LifetimeName::Implicit and ↵Camille GILLOT-6/+2
LifetimeName::Underscore.
2022-07-25Report elision failures on the AST.Camille GILLOT-1/+0
2022-07-16Stabilize `let_chains`Caio-1/+1
2022-07-15Correctly handle path stability for 'use tree' itemsAaron Hill-0/+10
PR #5956 started checking the stability of path segments. However, this was not applied to 'use tree' items (e.g. 'use some::path::{ItemOne, ItemTwo}') due to the way that we desugar these items in HIR lowering. This PR modifies 'use tree' lowering to preserve resolution information, which is needed by stability checking.
2022-07-13Rename `debugging_opts` to `unstable_opts`Joshua Nelson-2/+2
This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear.
2022-07-11move else block into the `Local` structDing Xiang Fei-2/+10
2022-07-11lower let-else in MIR insteadDing Xiang Fei-1/+1
2022-07-11Auto merge of #98637 - cjgillot:bare-trait-anon-lt, r=petrochenkovbors-0/+27
Create fresh lifetime parameters for bare fn trait too The current code fails to account for the equivalence between `dyn FnMut(&mut u8)` and bare `FnMut(&mut u8)`, and treated them differently. This PR introduces a special case for `Fn` traits, which are always fully resolved. Fixes #98616 Fixes #98726 This will require a beta-backport, as beta contains that bug. r? `@petrochenkov`
2022-07-06Remove `sess` field from LoweringContext.Camille GILLOT-15/+13
2022-07-06Expand comment in `with_hir_id_owner`.Camille GILLOT-2/+9
2022-07-06Do not create a new NodeId when not used.Camille GILLOT-2/+6
2022-07-06Remove useless branch.Camille GILLOT-7/+3
2022-07-06Make AST lowering a query.Camille GILLOT-79/+59
2022-07-02Handle fresh lifetimes on bare trait objects.Camille GILLOT-0/+27
2022-06-21Always create parameters for functions-like types.Camille GILLOT-18/+42
2022-06-19Leave the responsibility to create `Fresh` lifetimes to lowering.Camille GILLOT-2/+13
2022-06-17Auto merge of #98106 - cjgillot:split-definitions, r=michaelwoeristerbors-194/+229
Split up `Definitions` and `ResolverAstLowering`. Split off https://github.com/rust-lang/rust/pull/95573 r? `@michaelwoerister`
2022-06-15Consume resolutions for lowering separately.Camille GILLOT-19/+14
2022-06-15Update next_node_id.Camille GILLOT-7/+4
2022-06-15rename function and remove return typeEdwinRy-2/+2
2022-06-14Separate `source_span` and `expn_that_defined` from `Definitions`.Camille GILLOT-34/+14
2022-06-14Do not modify the resolver outputs.Camille GILLOT-55/+61