summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-21 00:04:13 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-21 09:27:34 -0800
commiteb47e1e4469fc23cf4fdce7aebdfd59d9b012064 (patch)
treeea91669277cd15f97c3e482cb46c8ad10097034c /src/libsyntax/ast.rs
parentcfc815bef4b7fec0f77255188b582b4b7b5e73ca (diff)
parent314ed2df096858e7c174254b0babd5f949ae6d27 (diff)
downloadrust-eb47e1e4469fc23cf4fdce7aebdfd59d9b012064.tar.gz
rust-eb47e1e4469fc23cf4fdce7aebdfd59d9b012064.zip
rollup merge of #20039: barosl/if-let-friendly-error
Fixes #19991.
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 440e11e385f..a294706ef2c 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -32,7 +32,6 @@ pub use self::LitIntType::*;
 pub use self::LocalSource::*;
 pub use self::Mac_::*;
 pub use self::MacStmtStyle::*;
-pub use self::MatchSource::*;
 pub use self::MetaItem_::*;
 pub use self::Method_::*;
 pub use self::Mutability::*;
@@ -760,9 +759,9 @@ pub struct QPath {
 
 #[deriving(Clone, Copy, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
 pub enum MatchSource {
-    MatchNormal,
-    MatchIfLetDesugar,
-    MatchWhileLetDesugar,
+    Normal,
+    IfLetDesugar { contains_else_clause: bool },
+    WhileLetDesugar,
 }
 
 #[deriving(Clone, Copy, PartialEq, Eq, Encodable, Decodable, Hash, Show)]