From a0958048b6b31c3a2ac9242aac699791431955de Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Mon, 14 May 2018 03:22:52 +0300 Subject: Stabilize `use_extern_macros` --- src/libsyntax/ext/expand.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index f7ea781e021..90b46268045 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1124,9 +1124,7 @@ impl<'a, 'b> InvocationCollector<'a, 'b> { return attrs; } - if self.cx.ecfg.use_extern_macros_enabled() { - attr = find_attr_invoc(&mut attrs); - } + attr = find_attr_invoc(&mut attrs); traits = collect_derives(&mut self.cx, &mut attrs); attrs }); @@ -1147,9 +1145,7 @@ impl<'a, 'b> InvocationCollector<'a, 'b> { return attrs; } - if self.cx.ecfg.use_extern_macros_enabled() { - attr = find_attr_invoc(&mut attrs); - } + attr = find_attr_invoc(&mut attrs); attrs }); @@ -1667,10 +1663,6 @@ impl<'feat> ExpansionConfig<'feat> { fn proc_macro_expr = proc_macro_expr, fn proc_macro_non_items = proc_macro_non_items, } - - pub fn use_extern_macros_enabled(&self) -> bool { - self.features.map_or(false, |features| features.use_extern_macros()) - } } // A Marker adds the given mark to the syntax context. -- cgit 1.4.1-3-g733a5