aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/dom_struct/lib.rs4
-rw-r--r--python/servo/testing_commands.py3
-rw-r--r--rust-toolchain2
3 files changed, 8 insertions, 1 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()
}
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index a72b6ef8f70..e0b9a4e7b28 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -254,6 +254,9 @@ class MachCommands(CommandBase):
env = self.build_env()
env["RUST_BACKTRACE"] = "1"
+ # Work around https://github.com/rust-lang/cargo/issues/4790
+ del env["RUSTDOCFLAGS"]
+
if "msvc" in host_triple():
# on MSVC, we need some DLLs in the path. They were copied
# in to the servo.exe build dir, so just point PATH to that.
diff --git a/rust-toolchain b/rust-toolchain
index 45c170f9e3f..3e5d257a285 100644
--- a/rust-toolchain
+++ b/rust-toolchain
@@ -1 +1 @@
-nightly-2017-11-14
+nightly-2017-12-07