diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-08 12:44:45 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-11 12:34:48 +0100 |
| commit | 47b0784ba8e62a2e1b877750baeae10d16555fff (patch) | |
| tree | e92bc429f6fec64ef930c8cf63bf0ec30d41c69e /src/libsyntax/parse/classify.rs | |
| parent | 3b57d40fe5a813ac957667ac04938753e3100f55 (diff) | |
| download | rust-47b0784ba8e62a2e1b877750baeae10d16555fff.tar.gz rust-47b0784ba8e62a2e1b877750baeae10d16555fff.zip | |
[breaking-change] don't glob export ast::BlockCheckMode variants
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index 1193224bdb6..ef50b3adad3 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -12,7 +12,7 @@ // Predicates on exprs and stmts that the pretty-printer and parser use -use ast; +use ast::{self, BlockCheckMode}; /// Does this expression require a semicolon to be treated /// as a statement? The negation of this: 'can this expression @@ -37,7 +37,7 @@ pub fn expr_requires_semi_to_be_stmt(e: &ast::Expr) -> bool { pub fn expr_is_simple_block(e: &ast::Expr) -> bool { match e.node { - ast::ExprBlock(ref block) => block.rules == ast::DefaultBlock, + ast::ExprBlock(ref block) => block.rules == BlockCheckMode::Default, _ => false, } } |
