aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-08-23 17:05:41 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-08-23 17:05:41 +0200
commite034117152c27bb7e901a25c8bbfd4a5e0ed2e67 (patch)
treef2dfaea8889e50521594bb1b98c96731c51354a9
parentf863a7c317c1f52cde690085b40c3441b6cd789f (diff)
downloadservo-e034117152c27bb7e901a25c8bbfd4a5e0ed2e67.tar.gz
servo-e034117152c27bb7e901a25c8bbfd4a5e0ed2e67.zip
Update Rust to 1.13.0-nightly (3c5a0fa45 2016-08-22)
-rw-r--r--components/script/dom/bindings/cell.rs6
-rw-r--r--components/script/lib.rs1
-rw-r--r--rust-nightly-date2
3 files changed, 4 insertions, 5 deletions
diff --git a/components/script/dom/bindings/cell.rs b/components/script/dom/bindings/cell.rs
index 29c4f8bad09..d1b40af5b1a 100644
--- a/components/script/dom/bindings/cell.rs
+++ b/components/script/dom/bindings/cell.rs
@@ -29,7 +29,7 @@ impl<T> DOMRefCell<T> {
#[allow(unsafe_code)]
pub unsafe fn borrow_for_layout(&self) -> &T {
debug_assert!(thread_state::get().is_layout());
- &*self.value.as_unsafe_cell().get()
+ &*self.value.as_ptr()
}
/// Borrow the contents for the purpose of GC tracing.
@@ -41,7 +41,7 @@ impl<T> DOMRefCell<T> {
// FIXME: IN_GC isn't reliable enough - doesn't catch minor GCs
// https://github.com/servo/servo/issues/6389
// debug_assert!(thread_state::get().contains(SCRIPT | IN_GC));
- &*self.value.as_unsafe_cell().get()
+ &*self.value.as_ptr()
}
/// Borrow the contents for the purpose of script deallocation.
@@ -49,7 +49,7 @@ impl<T> DOMRefCell<T> {
#[allow(unsafe_code)]
pub unsafe fn borrow_for_script_deallocation(&self) -> &mut T {
debug_assert!(thread_state::get().contains(SCRIPT));
- &mut *self.value.as_unsafe_cell().get()
+ &mut *self.value.as_ptr()
}
/// Version of the above that we use during restyle while the script thread
diff --git a/components/script/lib.rs b/components/script/lib.rs
index bf5e7807a80..0f28a2b065c 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#![feature(as_unsafe_cell)]
#![feature(box_syntax)]
#![feature(conservative_impl_trait)]
#![feature(const_fn)]
diff --git a/rust-nightly-date b/rust-nightly-date
index 3aeaf3b66d6..02e42b37add 100644
--- a/rust-nightly-date
+++ b/rust-nightly-date
@@ -1 +1 @@
-2016-08-19
+2016-08-23