]> git.lizzy.rs Git - rust.git/commitdiff
Improved comments around dropped attributes in the macro expander
authorMarvin Löbel <loebel.marvin@gmail.com>
Mon, 30 Nov 2015 21:26:03 +0000 (22:26 +0100)
committerMarvin Löbel <loebel.marvin@gmail.com>
Mon, 30 Nov 2015 21:26:03 +0000 (22:26 +0100)
src/libsyntax/ext/expand.rs

index 1512cab9498f00bc54bb7d3d7907673d7880e591..a09bc24c13937eb664f2e2104fbe6c65c70aece5 100644 (file)
@@ -44,7 +44,7 @@ pub fn expand_expr(e: P<ast::Expr>, fld: &mut MacroExpander) -> P<ast::Expr> {
         // entry-point for all syntax extensions.
         ast::ExprMac(mac) => {
 
-            // FIXME: for now, drop attributes on the macro itself
+            // Assert that we drop any macro attributes on the floor here
             drop(attrs);
 
             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>> {
         _ => return expand_non_macro_stmt(stmt, fld)
     };
 
-    // FIXME: for now, drop attrs on macros.
+    // Assert that we drop any macro attributes on the floor here
     drop(attrs);
 
     let maybe_new_items =