Function rustc::middle::typeck::check::_match::check_struct_pat_fields[src]
pub fn check_struct_pat_fields(pcx: &pat_ctxt, span: Span, fields: &[FieldPat], class_fields: Vec<field_ty>, class_id: DefId, substitutions: &Substs, etc: bool)
path is the AST path item naming the type of this struct.
fields is the field patterns of the struct pattern.
class_fields describes the type of each field of the struct.
class_id is the ID of the struct.
substitutions are the type substitutions applied to this struct type
(e.g. K,V in HashMapetc is true if the pattern said '...' and false otherwise.