Skip to content

Commit 3f33cbc

Browse files
committed
Improved comments around dropped attributes in the macro expander
1 parent 5eaf31b commit 3f33cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/ext/expand.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn expand_expr(e: P<ast::Expr>, fld: &mut MacroExpander) -> P<ast::Expr> {
4444
// entry-point for all syntax extensions.
4545
ast::ExprMac(mac) => {
4646

47-
// FIXME: for now, drop attributes on the macro itself
47+
// Assert that we drop any macro attributes on the floor here
4848
drop(attrs);
4949

5050
let expanded_expr = match expand_mac_invoc(mac, span,
@@ -505,7 +505,7 @@ fn expand_stmt(stmt: P<Stmt>, fld: &mut MacroExpander) -> SmallVector<P<Stmt>> {
505505
_ => return expand_non_macro_stmt(stmt, fld)
506506
};
507507

508-
// FIXME: for now, drop attrs on macros.
508+
// Assert that we drop any macro attributes on the floor here
509509
drop(attrs);
510510

511511
let maybe_new_items =

0 commit comments

Comments
 (0)