aboutsummaryrefslogtreecommitdiffstats
path: root/components/dom_struct/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-12-04 10:54:32 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-12-07 13:50:09 +0100
commit1a950d263a631c59534eb2c97e92348321e42d63 (patch)
treea05cae198a4c4e6eabdc7a4fd0a447cf8eb4724e /components/dom_struct/lib.rs
parente64647188879b8269b62c1d5c8aa05732ab9d96d (diff)
downloadservo-1a950d263a631c59534eb2c97e92348321e42d63.tar.gz
servo-1a950d263a631c59534eb2c97e92348321e42d63.zip
Upgrade to rustc 1.24.0-nightly (5a2465e2b 2017-12-06)
Diffstat (limited to 'components/dom_struct/lib.rs')
-rw-r--r--components/dom_struct/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/dom_struct/lib.rs b/components/dom_struct/lib.rs
index a955f00ce87..41cf4a67527 100644
--- a/components/dom_struct/lib.rs
+++ b/components/dom_struct/lib.rs
@@ -19,5 +19,9 @@ pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream {
#[must_root]
#[repr(C)]
};
+
+ // Work around https://github.com/rust-lang/rust/issues/46489
+ let attributes = attributes.to_string().parse().unwrap();
+
iter::once(attributes).chain(iter::once(input)).collect()
}