Skip to content

Commit

Permalink
Upgrade to rustc 1.27.0-nightly (056f589fb 2018-04-07)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 9, 2018
1 parent cb754b2 commit 3d6614e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions components/dom_struct/lib.rs
Expand Up @@ -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 {
Expand All @@ -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()
}
2 changes: 1 addition & 1 deletion components/script/dom/bindings/str.rs
Expand Up @@ -208,7 +208,7 @@ impl DOMString {
let first_non_whitespace = self.0.find(|ref c| !char::is_ascii_whitespace(c)).unwrap();

self.0.truncate(last_non_whitespace);
let _ = self.0.splice(0..first_non_whitespace, "");
let _ = self.0.replace_range(0..first_non_whitespace, "");
}

/// Validates this `DOMString` is a time string according to
Expand Down
3 changes: 0 additions & 3 deletions components/script/lib.rs
Expand Up @@ -4,13 +4,10 @@

#![cfg_attr(feature = "unstable", feature(core_intrinsics))]
#![cfg_attr(feature = "unstable", feature(on_unimplemented))]
#![feature(ascii_ctype)]
#![feature(conservative_impl_trait)]
#![feature(const_fn)]
#![feature(mpsc_select)]
#![feature(plugin)]
#![feature(proc_macro)]
#![feature(splice)]
#![feature(string_retain)]

#![deny(unsafe_code)]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1 +1 @@
nightly-2018-01-27
nightly-2018-04-08

0 comments on commit 3d6614e

Please sign in to comment.