rustc_hir_pretty

Function stmt_ends_with_semi

Source
pub(crate) fn stmt_ends_with_semi(stmt: &StmtKind<'_>) -> bool
Expand description

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.