Skip to content

Commit

Permalink
Eliminates a pointless is_empty test.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-chambers committed Apr 11, 2015
1 parent b16cfac commit fae29e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/ext/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ fn expand_stmt(stmt: P<Stmt>, fld: &mut MacroExpander) -> SmallVector<P<Stmt>> {

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

0 comments on commit fae29e4

Please sign in to comment.