pub(crate) trait ResolverAstLoweringExt<'tcx> {
// Required methods
fn legacy_const_generic_args(
&self,
expr: &Expr,
tcx: TyCtxt<'tcx>,
) -> Option<Vec<usize>>;
fn extra_lifetime_params(
&self,
id: NodeId,
) -> &[(Ident, NodeId, MissingLifetimeKind)];
fn delegation_info(&self, id: LocalDefId) -> Option<&DelegationInfo>;
fn owner_def_id(&self, id: NodeId) -> LocalDefId;
}Required Methods§
fn legacy_const_generic_args( &self, expr: &Expr, tcx: TyCtxt<'tcx>, ) -> Option<Vec<usize>>
Sourcefn extra_lifetime_params(
&self,
id: NodeId,
) -> &[(Ident, NodeId, MissingLifetimeKind)]
fn extra_lifetime_params( &self, id: NodeId, ) -> &[(Ident, NodeId, MissingLifetimeKind)]
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.
fn delegation_info(&self, id: LocalDefId) -> Option<&DelegationInfo>
fn owner_def_id(&self, id: NodeId) -> LocalDefId
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<'tcx> ResolverAstLoweringExt<'tcx> for ResolverAstLowering<'tcx>
impl<'tcx> ResolverAstLoweringExt<'tcx> for ResolverAstLowering<'tcx>
Source§fn extra_lifetime_params(
&self,
id: NodeId,
) -> &[(Ident, NodeId, MissingLifetimeKind)]
fn extra_lifetime_params( &self, id: NodeId, ) -> &[(Ident, NodeId, MissingLifetimeKind)]
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.