Remove PatWildMulti
This commit is contained in:
parent
cc8d398e28
commit
3468b8d42c
29 changed files with 47 additions and 89 deletions
|
|
@ -31,7 +31,6 @@ pub use self::MetaItem_::*;
|
|||
pub use self::Mutability::*;
|
||||
pub use self::Pat_::*;
|
||||
pub use self::PathListItem_::*;
|
||||
pub use self::PatWildKind::*;
|
||||
pub use self::PrimTy::*;
|
||||
pub use self::Sign::*;
|
||||
pub use self::Stmt_::*;
|
||||
|
|
@ -569,19 +568,10 @@ pub enum BindingMode {
|
|||
BindByValue(Mutability),
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
|
||||
pub enum PatWildKind {
|
||||
/// Represents the wildcard pattern `_`
|
||||
PatWildSingle,
|
||||
|
||||
/// Represents the wildcard pattern `..`
|
||||
PatWildMulti,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
|
||||
pub enum Pat_ {
|
||||
/// Represents a wildcard pattern (either `_` or `..`)
|
||||
PatWild(PatWildKind),
|
||||
/// Represents a wildcard pattern (`_`)
|
||||
PatWild,
|
||||
|
||||
/// A PatIdent may either be a new bound variable,
|
||||
/// or a nullary enum (in which case the third field
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue