diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-09-02 07:58:08 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-09-02 07:58:08 +1000 |
commit | cc03e4f9e2c1ceac3ebdbcfa1973c1c40a77d5e7 (patch) | |
tree | 038265bb719c63d77a01c42b26015804ebd835c0 | |
parent | a8b7b193f5cd7af7abb7f5fe2e3f5f1e9d0f6ce4 (diff) | |
download | servo-cc03e4f9e2c1ceac3ebdbcfa1973c1c40a77d5e7.tar.gz servo-cc03e4f9e2c1ceac3ebdbcfa1973c1c40a77d5e7.zip |
Revert "fixup! Move PropertyBitField to a syntax extension."
This reverts commit 653f257029466fcc587d6ba17495a663cbd1693b.
-rw-r--r-- | src/components/macros/macros.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/macros/macros.rs b/src/components/macros/macros.rs index f97a7cf2f1e..ecd8915dbc4 100644 --- a/src/components/macros/macros.rs +++ b/src/components/macros/macros.rs @@ -15,7 +15,7 @@ extern crate sync; extern crate rustc; extern crate syntax; - + use syntax::ast; use syntax::codemap::Span; use syntax::ext::base; @@ -92,12 +92,10 @@ fn expand_bit_struct(cx: &mut ExtCtxt, sp: Span, name: ast::Ident, tts: Vec<ast: let additional_impl = quote_item!(&*cx, impl $name { #[allow(non_snake_case_functions)] - #[inline] pub fn $field(&self) -> bool { (self.storage[$word] & (1 << $bit)) != 0 } #[allow(non_snake_case_functions)] - #[inline] pub fn $setter(&mut self, new_value: bool) { if new_value { self.storage[$word] |= 1 << $bit @@ -120,8 +118,6 @@ fn expand_bit_struct(cx: &mut ExtCtxt, sp: Span, name: ast::Ident, tts: Vec<ast: // Re-wrap. let impl_def = box(GC) impl_def; - // FIXME(SimonSapin) replace this with something from libsyntax - // if/when https://github.com/rust-lang/rust/issues/16723 is fixed struct MacItems { items: Vec<Gc<ast::Item>> } |