diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-11 02:31:34 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-11 16:03:16 +0300 |
| commit | 3f064cae3d9d0d33951a44c30d83696563244572 (patch) | |
| tree | c72777f2d563c1b75235b76bdd4663744e67f218 /src/libsyntax/parse/classify.rs | |
| parent | 8739668438a40712a0bc617bc587d415c8cb42f0 (diff) | |
| download | rust-3f064cae3d9d0d33951a44c30d83696563244572.tar.gz rust-3f064cae3d9d0d33951a44c30d83696563244572.zip | |
Move literal parsing code into a separate file
Remove some dead code
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index b4103440e35..dfd6f451c28 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -25,16 +25,3 @@ pub fn expr_requires_semi_to_be_stmt(e: &ast::Expr) -> bool { _ => true, } } - -/// this statement requires a semicolon after it. -/// note that in one case (`stmt_semi`), we've already -/// seen the semicolon, and thus don't need another. -pub fn stmt_ends_with_semi(stmt: &ast::StmtKind) -> bool { - match *stmt { - ast::StmtKind::Local(_) => true, - ast::StmtKind::Expr(ref e) => expr_requires_semi_to_be_stmt(e), - ast::StmtKind::Item(_) | - ast::StmtKind::Semi(..) | - ast::StmtKind::Mac(..) => false, - } -} |
