From 65d256e82a26ca6e72e6668adb66a284b4ad7ba1 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Sat, 11 Jun 2016 04:58:15 +0000 Subject: Support nested `cfg_attr` attributes --- src/libsyntax/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/config.rs b/src/libsyntax/config.rs index c164e89c52f..207289de347 100644 --- a/src/libsyntax/config.rs +++ b/src/libsyntax/config.rs @@ -78,7 +78,7 @@ impl<'a> StripUnconfigured<'a> { }; if attr::cfg_matches(self.config, &cfg, &mut self.diag) { - Some(respan(mi.span, ast::Attribute_ { + self.process_cfg_attr(respan(mi.span, ast::Attribute_ { id: attr::mk_attr_id(), style: attr.node.style, value: mi.clone(), -- cgit 1.4.1-3-g733a5