Skip to main content

ResolverAstLoweringExt

Trait ResolverAstLoweringExt 

Source
pub(crate) trait ResolverAstLoweringExt<'tcx> {
Show 14 methods // Required methods fn legacy_const_generic_args( &self, expr: &Expr, tcx: TyCtxt<'tcx>, ) -> Option<Vec<usize>>; fn get_partial_res(&self, id: NodeId) -> Option<PartialRes>; fn get_import_res(&self, id: NodeId) -> PerNS<Option<Res<NodeId>>>; fn get_label_res(&self, id: NodeId) -> Option<NodeId>; fn get_lifetime_res(&self, id: NodeId) -> Option<LifetimeRes>; fn extra_lifetime_params( &self, id: NodeId, ) -> Vec<(Ident, NodeId, LifetimeRes)>; fn delegation_info(&self, id: LocalDefId) -> Option<&DelegationInfo>; fn opt_local_def_id(&self, id: NodeId) -> Option<LocalDefId>; fn local_def_id(&self, id: NodeId) -> LocalDefId; fn lifetime_elision_allowed(&self, id: NodeId) -> bool; fn insert_new_def_id(&mut self, node_id: NodeId, def_id: LocalDefId); fn insert_partial_res(&mut self, node_id: NodeId, res: PartialRes); fn trait_candidates( &self, node_id: NodeId, ) -> Option<&'tcx [TraitCandidate<'tcx>]>; fn next_node_id(&mut self) -> NodeId;
}

Required Methods§

Source

fn legacy_const_generic_args( &self, expr: &Expr, tcx: TyCtxt<'tcx>, ) -> Option<Vec<usize>>

Source

fn get_partial_res(&self, id: NodeId) -> Option<PartialRes>

Source

fn get_import_res(&self, id: NodeId) -> PerNS<Option<Res<NodeId>>>

Obtains per-namespace resolutions for use statement with the given NodeId.

Source

fn get_label_res(&self, id: NodeId) -> Option<NodeId>

Obtains resolution for a label with the given NodeId.

Source

fn get_lifetime_res(&self, id: NodeId) -> Option<LifetimeRes>

Obtains resolution for a lifetime with the given NodeId.

Source

fn extra_lifetime_params(&self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)>

Obtain the list of lifetimes parameters to add to an item.

Extra lifetime parameters should only be added in places that can appear as a binder in LifetimeRes.

The extra lifetimes that appear from the parenthesized Fn-trait desugaring should appear at the enclosing PolyTraitRef.

Source

fn delegation_info(&self, id: LocalDefId) -> Option<&DelegationInfo>

Source

fn opt_local_def_id(&self, id: NodeId) -> Option<LocalDefId>

Source

fn local_def_id(&self, id: NodeId) -> LocalDefId

Source

fn lifetime_elision_allowed(&self, id: NodeId) -> bool

Source

fn insert_new_def_id(&mut self, node_id: NodeId, def_id: LocalDefId)

Source

fn insert_partial_res(&mut self, node_id: NodeId, res: PartialRes)

Source

fn trait_candidates( &self, node_id: NodeId, ) -> Option<&'tcx [TraitCandidate<'tcx>]>

Source

fn next_node_id(&mut self) -> NodeId

Implementations on Foreign Types§

Source§

impl<'tcx> ResolverAstLoweringExt<'tcx> for ResolverAstLowering<'tcx>

Source§

fn get_import_res(&self, id: NodeId) -> PerNS<Option<Res<NodeId>>>

Obtains per-namespace resolutions for use statement with the given NodeId.

Source§

fn get_label_res(&self, id: NodeId) -> Option<NodeId>

Obtains resolution for a label with the given NodeId.

Source§

fn get_lifetime_res(&self, id: NodeId) -> Option<LifetimeRes>

Obtains resolution for a lifetime with the given NodeId.

Source§

fn extra_lifetime_params(&self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)>

Obtain the list of lifetimes parameters to add to an item.

Extra lifetime parameters should only be added in places that can appear as a binder in LifetimeRes.

The extra lifetimes that appear from the parenthesized Fn-trait desugaring should appear at the enclosing PolyTraitRef.

Source§

fn legacy_const_generic_args( &self, expr: &Expr, tcx: TyCtxt<'tcx>, ) -> Option<Vec<usize>>

Source§

fn get_partial_res(&self, id: NodeId) -> Option<PartialRes>

Source§

fn delegation_info(&self, id: LocalDefId) -> Option<&DelegationInfo>

Source§

fn opt_local_def_id(&self, id: NodeId) -> Option<LocalDefId>

Source§

fn local_def_id(&self, id: NodeId) -> LocalDefId

Source§

fn lifetime_elision_allowed(&self, id: NodeId) -> bool

Source§

fn insert_new_def_id(&mut self, node_id: NodeId, def_id: LocalDefId)

Source§

fn insert_partial_res(&mut self, node_id: NodeId, res: PartialRes)

Source§

fn trait_candidates( &self, node_id: NodeId, ) -> Option<&'tcx [TraitCandidate<'tcx>]>

Source§

fn next_node_id(&mut self) -> NodeId

Implementors§