Function rustc_typeck::collect::is_param [−][src]
fn is_param<'a, 'tcx>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
ast_ty: &Ty,
param_id: NodeId
) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Tests whether this is the AST for a reference to the type
parameter with id param_id
. We use this so as to avoid running
ast_ty_to_ty
, because we want to avoid triggering an all-out
conversion of the type to avoid inducing unnecessary cycles.