Module rustc::middle::check_matchUnstable [-] [+] [src]

Reexports

pub use self::Constructor::*;

Structs

MatchCheckCtxt
StaticInliner

Enums

Constructor

Constants

DUMMY_WILD_PAT

Functions

check_crate
constructor_arity

This computes the arity of a constructor. The arity of a constructor is how many subpattern patterns of that constructor should be expanded to.

specialize

This is the main specialization step. It expands the first pattern in the given row into arity patterns based on the constructor. For most patterns, the step is trivial, for instance tuple patterns are flattened and box patterns expand into their inner pattern.