Function rustc_trans::middle::typeck::astconv::ast_path_to_ty_relaxedExperimental [-]  [+] [src]

pub fn ast_path_to_ty_relaxed<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(this: &AC, rscope: &RS, did: DefId, path: &Path) -> TypeAndSubsts<'tcx>

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.