about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2015-11-30 22:26:03 +0100
committerMarvin Löbel <loebel.marvin@gmail.com>2015-11-30 22:26:03 +0100
commit3f33cbcbff47182fef3437040c301c8ea30a5afc (patch)
treefb9eca93b841431be6cc8126a5d7e80faedebf9d /src/libsyntax/ext
parent5eaf31b7b2a1ffe892ac9fc14f49777cf64bb334 (diff)
downloadrust-3f33cbcbff47182fef3437040c301c8ea30a5afc.tar.gz
rust-3f33cbcbff47182fef3437040c301c8ea30a5afc.zip
Improved comments around dropped attributes in the macro expander
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/expand.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 1512cab9498..a09bc24c139 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -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 =