diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-12-04 10:54:32 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-12-07 13:50:09 +0100 |
commit | 1a950d263a631c59534eb2c97e92348321e42d63 (patch) | |
tree | a05cae198a4c4e6eabdc7a4fd0a447cf8eb4724e /components/dom_struct/lib.rs | |
parent | e64647188879b8269b62c1d5c8aa05732ab9d96d (diff) | |
download | servo-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.rs | 4 |
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() } |