1
Fork 0

[breaking-change] don't pub export ast::Stmt_ variants

This commit is contained in:
Oliver Schneider 2016-02-08 17:23:13 +01:00
parent 498a2e416e
commit 8290c950a8
17 changed files with 87 additions and 92 deletions

View file

@ -867,7 +867,7 @@ mod tests {
#[test] fn parse_stmt_1 () {
assert!(string_to_stmt("b;".to_string()) ==
Some(P(Spanned{
node: ast::StmtExpr(P(ast::Expr {
node: ast::StmtKind::Expr(P(ast::Expr {
id: ast::DUMMY_NODE_ID,
node: ast::ExprKind::Path(None, ast::Path {
span:sp(0,1),
@ -958,7 +958,7 @@ mod tests {
},
P(ast::Block {
stmts: vec!(P(Spanned{
node: ast::StmtSemi(P(ast::Expr{
node: ast::StmtKind::Semi(P(ast::Expr{
id: ast::DUMMY_NODE_ID,
node: ast::ExprKind::Path(None,
ast::Path{