mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Upgrade to rustc 1.27.0-nightly (056f589fb 2018-04-07)
This commit is contained in:
parent
cb754b2627
commit
3d6614e314
5 changed files with 10 additions and 14 deletions
|
@ -7,7 +7,6 @@
|
|||
extern crate proc_macro;
|
||||
|
||||
use proc_macro::{TokenStream, quote};
|
||||
use std::iter;
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||
|
@ -21,7 +20,7 @@ pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream {
|
|||
};
|
||||
|
||||
// Work around https://github.com/rust-lang/rust/issues/46489
|
||||
let attributes = attributes.to_string().parse().unwrap();
|
||||
let attributes: TokenStream = attributes.to_string().parse().unwrap();
|
||||
|
||||
iter::once(attributes).chain(iter::once(input)).collect()
|
||||
attributes.into_iter().chain(input.into_iter()).collect()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue