Function rustc::middle::typeck::astconv::ast_path_to_ty_relaxedExperimental
[-]
[+]
[src]
pub fn ast_path_to_ty_relaxed<'tcx, AC, RS>(this: &AC, rscope: &RS, did: DefId, path: &Path) -> TypeAndSubsts<'tcx> where AC: AstConv<'tcx>, RS: RegionScope
Returns the type that this AST path refers to. If the path has no type parameters and the corresponding type has type parameters, fresh type and/or region variables are substituted.
This is used when checking the constructor in struct literals.