pub struct Block {
/// Statements in a block
pub stmts: Vec<Stmt>,
- /// An expression at the end of the block
- /// without a semicolon, if any
- pub expr: Option<P<Expr>>,
pub id: NodeId,
/// Distinguishes between `unsafe { ... }` and `{ ... }`
pub rules: BlockCheckMode,
/// An item definition.
Item(P<Item>),
- /// Expr without trailing semi-colon (must have unit type).
+ /// Expr without trailing semi-colon.
Expr(P<Expr>),
Semi(P<Expr>),