diff options
| author | Christopher Chambers <chris.chambers@peanutcode.com> | 2015-04-10 22:20:01 -0500 |
|---|---|---|
| committer | Christopher Chambers <chris.chambers@peanutcode.com> | 2015-04-10 22:20:01 -0500 |
| commit | fae29e497c08fcdde8a429a7e2b656e7a8b6cc17 (patch) | |
| tree | cee5c5a97f74dcf5e58aed4ea649a604cd35b386 /src/libsyntax | |
| parent | b16cfacbccee272ed8a30aec1f5c25e9f845d1a8 (diff) | |
| download | rust-fae29e497c08fcdde8a429a7e2b656e7a8b6cc17.tar.gz rust-fae29e497c08fcdde8a429a7e2b656e7a8b6cc17.zip | |
Eliminates a pointless is_empty test.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 9c1b32aadbd..4a6c45b5be5 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -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}| { |
