diff options
| author | Ms2ger <Ms2ger@gmail.com> | 2015-10-01 18:03:34 +0200 |
|---|---|---|
| committer | Ms2ger <Ms2ger@gmail.com> | 2015-10-01 18:03:34 +0200 |
| commit | b093060c2a122ff1433bbb46aa603b99be5ef8f9 (patch) | |
| tree | 734792d961612a65d511cff23d136728877b7448 /src/libsyntax/ext | |
| parent | 24202c6431a29d18f58c6d7302d6a9095e218395 (diff) | |
| download | rust-b093060c2a122ff1433bbb46aa603b99be5ef8f9.tar.gz rust-b093060c2a122ff1433bbb46aa603b99be5ef8f9.zip | |
Stop re-exporting AttrStyle's variants and rename them.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 5b35b870c30..a20080dcbf0 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -1079,7 +1079,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { fn attribute(&self, sp: Span, mi: P<ast::MetaItem>) -> ast::Attribute { respan(sp, ast::Attribute_ { id: attr::mk_attr_id(), - style: ast::AttrOuter, + style: ast::AttrStyle::Outer, value: mi, is_sugared_doc: false, }) diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 6173630175a..b15c51490a1 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -660,7 +660,7 @@ fn contains_macro_use(fld: &mut MacroExpander, attrs: &[ast::Attribute]) -> bool if attr.check_name("macro_escape") { fld.cx.span_warn(attr.span, "macro_escape is a deprecated synonym for macro_use"); is_use = true; - if let ast::AttrInner = attr.node.style { + if let ast::AttrStyle::Inner = attr.node.style { fld.cx.fileline_help(attr.span, "consider an outer attribute, \ #[macro_use] mod ..."); } diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index e9a5d914824..e5fd15559ec 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -187,7 +187,7 @@ pub mod rt { let mut r = vec![]; // FIXME: The spans could be better r.push(ast::TtToken(self.span, token::Pound)); - if self.node.style == ast::AttrInner { + if self.node.style == ast::AttrStyle::Inner { r.push(ast::TtToken(self.span, token::Not)); } r.push(ast::TtDelimited(self.span, Rc::new(ast::Delimited { |
