Skip to content

Commit fae29e4

Browse files
Eliminates a pointless is_empty test.
1 parent b16cfac commit fae29e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ fn expand_stmt(stmt: P<Stmt>, fld: &mut MacroExpander) -> SmallVector<P<Stmt>> {
771771

772772
// If this is a macro invocation with a semicolon, then apply that
773773
// semicolon to the final statement produced by expansion.
774-
if style == MacStmtWithSemicolon && !fully_expanded.is_empty() {
774+
if style == MacStmtWithSemicolon {
775775
match fully_expanded.pop() {
776776
Some(stmt) => {
777777
let new_stmt = stmt.map(|Spanned {node, span}| {

0 commit comments

Comments
 (0)