From 3f33cbcbff47182fef3437040c301c8ea30a5afc Mon Sep 17 00:00:00 2001 From: Marvin Löbel Date: Mon, 30 Nov 2015 22:26:03 +0100 Subject: Improved comments around dropped attributes in the macro expander --- src/libsyntax/ext/expand.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax') 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, fld: &mut MacroExpander) -> P { // 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, fld: &mut MacroExpander) -> SmallVector> { _ => 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 = -- cgit 1.4.1-3-g733a5