diff options
| author | bors <bors@rust-lang.org> | 2018-08-17 19:10:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-17 19:10:34 +0000 |
| commit | c8c587fe4ea43afb1c3cf9fe008101f09003ccd1 (patch) | |
| tree | 3ac680db941a34ceb9e74527b39887f3c36d0751 /src/libsyntax/ext | |
| parent | de21ea8ff536430885d50e882026953c2f0684d4 (diff) | |
| parent | 674a5db1a50e25dd60a8ee6669edee9a366c9fab (diff) | |
| download | rust-c8c587fe4ea43afb1c3cf9fe008101f09003ccd1.tar.gz rust-c8c587fe4ea43afb1c3cf9fe008101f09003ccd1.zip | |
Auto merge of #50911 - petrochenkov:macuse, r=alexcrichton
Stabilize `use_extern_macros` Closes https://github.com/rust-lang/rust/issues/35896
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 12 |
1 files changed, 2 insertions, 10 deletions
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. |
