Some cleanup of no longer used AST things
This commit is contained in:
parent
21205f4f9e
commit
ba43c228b5
14 changed files with 19 additions and 68 deletions
|
@ -855,9 +855,8 @@ pub enum Expr_ {
|
|||
///
|
||||
/// `'label: loop { block }`
|
||||
ExprLoop(P<Block>, Option<Ident>),
|
||||
/// A `match` block, with a source that indicates whether or not it is
|
||||
/// the result of a desugaring, and if so, which kind.
|
||||
ExprMatch(P<Expr>, Vec<Arm>, MatchSource),
|
||||
/// A `match` block.
|
||||
ExprMatch(P<Expr>, Vec<Arm>),
|
||||
/// A closure (for example, `move |a, b, c| {a + b + c}`)
|
||||
ExprClosure(CaptureClause, P<FnDecl>, P<Block>),
|
||||
/// A block (`{ ... }`)
|
||||
|
@ -936,14 +935,6 @@ pub struct QSelf {
|
|||
pub position: usize
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
|
||||
pub enum MatchSource {
|
||||
Normal,
|
||||
IfLetDesugar { contains_else_clause: bool },
|
||||
WhileLetDesugar,
|
||||
ForLoopDesugar,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
|
||||
pub enum CaptureClause {
|
||||
CaptureByValue,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue