rust/src/librustc_ast
bors 4ad6248825 Auto merge of #69506 - Centril:stmt-semi-none, r=petrochenkov
encode `;` stmt without expr as `StmtKind::Empty`

Instead of encoding `;` statements without a an expression as a tuple in AST, encode it as `ast::StmtKind::Empty`.

r? @petrochenkov
2020-03-03 19:57:07 +00:00
..
ast Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
attr encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00
expand Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
util Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
ast.rs encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00
build.rs Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
Cargo.toml Make it build again 2020-02-29 20:47:10 +03:00
entry.rs Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
lib.rs Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
mut_visit.rs encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00
node_id.rs Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
ptr.rs Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
README.md Rename syntax in librustc_ast/README.md 2020-03-01 23:56:03 +01:00
token.rs Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
tokenstream.rs Move directory libsyntax -> librustc_ast 2020-02-29 20:47:10 +03:00
visit.rs encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00

The rustc_ast crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: