aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-05-08 16:06:56 -0500
committerGitHub <noreply@github.com>2017-05-08 16:06:56 -0500
commit19706085a7206144423a878f1617b32d56d406de (patch)
treed8cc60f759da4cc7d124d2ba80954f9e8600b1ca
parent4e3544f05c161039b97fe4c20daca4a0baf372fe (diff)
parent02e1901bc15812dfc74b4979e0951bf7593e7fc9 (diff)
downloadservo-19706085a7206144423a878f1617b32d56d406de.tar.gz
servo-19706085a7206144423a878f1617b32d56d406de.zip
Auto merge of #16756 - servo:rustup, r=jdm
Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16756) <!-- Reviewable:end -->
-rw-r--r--Cargo.lock18
-rw-r--r--components/canvas_traits/Cargo.toml2
-rw-r--r--components/gfx/text/shaping/harfbuzz.rs2
-rw-r--r--components/layout/wrapper.rs4
-rw-r--r--components/remutex/lib.rs4
-rw-r--r--components/script/dom/bindings/js.rs20
-rw-r--r--components/script/dom/bindings/weakref.rs16
-rw-r--r--components/script/layout_wrapper.rs4
-rw-r--r--components/style/Cargo.toml2
-rw-r--r--rust-commit-hash2
10 files changed, 37 insertions, 37 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 6ebbe5ae60e..daa5cef0da3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -410,12 +410,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "compiletest_helper"
version = "0.0.1"
dependencies = [
- "compiletest_rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
+ "compiletest_rs 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "compiletest_rs"
-version = "0.2.5"
+version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"log 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1161,7 +1161,7 @@ dependencies = [
"markup5ever 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)",
"syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)",
- "tendril 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
+ "tendril 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@@ -1312,7 +1312,7 @@ dependencies = [
[[package]]
name = "js"
version = "0.1.4"
-source = "git+https://github.com/servo/rust-mozjs#5ba3550c8d1535e0ab66495588f3a46885373c83"
+source = "git+https://github.com/servo/rust-mozjs#08af3654a1e781af7d6690838545975234ddd2a0"
dependencies = [
"cmake 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1582,7 +1582,7 @@ dependencies = [
"rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)",
"string_cache 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"string_cache_codegen 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "tendril 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
+ "tendril 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@@ -2945,7 +2945,7 @@ dependencies = [
[[package]]
name = "tendril"
-version = "0.2.3"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3343,7 +3343,7 @@ dependencies = [
"log 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
"mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"markup5ever 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "tendril 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
+ "tendril 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -3391,7 +3391,7 @@ dependencies = [
"checksum cmake 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "d18d68987ed4c516dcc3e7913659bfa4076f5182eea4a7e0038bb060953e76ac"
"checksum cocoa 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0a5d0bcb4d345adf9b4ada6c5bb3e2b87c8150b79c46f3f26446de5f4d48de4b"
"checksum color_quant 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a475fc4af42d83d28adf72968d9bcfaf035a1a9381642d8e85d8a04957767b0d"
-"checksum compiletest_rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f3f344389765ad7bec166f64c1b39ed6dd2b54d81c4c5dd8af789169351d380c"
+"checksum compiletest_rs 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "df47edea8bf052f23ce25a15cbf0be09c96911e3be943d1e81415bfaf0e74bf8"
"checksum cookie 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce776927cd64cbe74ebd1d9b375edb9d1b6bfa808618ddf9548645e019ebdfbb"
"checksum core-foundation 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f51ce3b8ebe311c56de14231eb57572c15abebd2d32b3bcb99bcdb9c101f5ac3"
"checksum core-foundation-sys 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "41115a6aa5d3e1e5ef98148373f25971d1fad53818553f216495f9e67e90a624"
@@ -3573,7 +3573,7 @@ dependencies = [
"checksum syntex_pos 0.58.1 (registry+https://github.com/rust-lang/crates.io-index)" = "13ad4762fe52abc9f4008e85c4fb1b1fe3aa91ccb99ff4826a439c7c598e1047"
"checksum syntex_syntax 0.58.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6e0e4dbae163dd98989464c23dd503161b338790640e11537686f2ef0f25c791"
"checksum target_build_utils 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f42dc058080c19c6a58bdd1bf962904ee4f5ef1fe2a81b529f31dacc750c679f"
-"checksum tendril 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cebf864c2d90394a1b66d6fe45963f9a177f2af81a0edea5060f77627f9c4587"
+"checksum tendril 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4ce04c250d202db8004921e3d3bc95eaa4f2126c6937a428ae39d12d0e38df62"
"checksum term 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d168af3930b369cfe245132550579d47dfd873d69470755a19c2c6568dbbd989"
"checksum term_size 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "07b6c1ac5b3fffd75073276bca1ceed01f67a28537097a2a9539e116e50fb21a"
"checksum thread-id 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4437c97558c70d129e40629a5b385b3fb1ffac301e63941335e4d354081ec14a"
diff --git a/components/canvas_traits/Cargo.toml b/components/canvas_traits/Cargo.toml
index 512e3366e89..c8d2690f8ae 100644
--- a/components/canvas_traits/Cargo.toml
+++ b/components/canvas_traits/Cargo.toml
@@ -15,6 +15,6 @@ euclid = "0.11"
heapsize = "0.3.0"
heapsize_derive = "0.1"
ipc-channel = "0.7"
-serde = {version = "0.9", features = ["unstable"]}
+serde = "0.9"
serde_derive = "0.9"
webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]}
diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs
index 6285ab42133..0449961ded1 100644
--- a/components/gfx/text/shaping/harfbuzz.rs
+++ b/components/gfx/text/shaping/harfbuzz.rs
@@ -164,7 +164,7 @@ impl Shaper {
Shaper::float_to_fixed(pt_size) as c_int);
// configure static function callbacks.
- hb_font_set_funcs(hb_font, **HB_FONT_FUNCS, font as *mut Font as *mut c_void, None);
+ hb_font_set_funcs(hb_font, HB_FONT_FUNCS.as_ptr(), font as *mut Font as *mut c_void, None);
Shaper {
hb_face: hb_face,
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs
index eb110a90e7a..9ceee25a718 100644
--- a/components/layout/wrapper.rs
+++ b/components/layout/wrapper.rs
@@ -43,7 +43,7 @@ use style::selector_parser::RestyleDamage;
pub type NonOpaqueStyleAndLayoutData = AtomicRefCell<PersistentLayoutData>;
pub unsafe fn drop_style_and_layout_data(data: OpaqueStyleAndLayoutData) {
- let ptr: *mut AtomicRefCell<PartialPersistentLayoutData> = *data.ptr;
+ let ptr: *mut AtomicRefCell<PartialPersistentLayoutData> = data.ptr.get();
let non_opaque: *mut NonOpaqueStyleAndLayoutData = ptr as *mut _;
let _ = Box::from_raw(non_opaque);
}
@@ -77,7 +77,7 @@ pub trait GetRawData {
impl<T: GetLayoutData> GetRawData for T {
fn get_raw_data(&self) -> Option<&NonOpaqueStyleAndLayoutData> {
self.get_style_and_layout_data().map(|opaque| {
- let container = *opaque.ptr as *mut NonOpaqueStyleAndLayoutData;
+ let container = opaque.ptr.get() as *mut NonOpaqueStyleAndLayoutData;
unsafe { &*container }
})
}
diff --git a/components/remutex/lib.rs b/components/remutex/lib.rs
index 683dcc99c74..d10378d86bd 100644
--- a/components/remutex/lib.rs
+++ b/components/remutex/lib.rs
@@ -53,7 +53,7 @@ impl AtomicOptThreadId {
AtomicOptThreadId(AtomicUsize::new(0))
}
pub fn store(&self, value: Option<ThreadId>, ordering: Ordering) {
- let number = value.map(|id| *id.0).unwrap_or(0);
+ let number = value.map(|id| id.0.get()).unwrap_or(0);
self.0.store(number, ordering);
}
#[allow(unsafe_code)]
@@ -63,7 +63,7 @@ impl AtomicOptThreadId {
}
#[allow(unsafe_code)]
pub fn swap(&self, value: Option<ThreadId>, ordering: Ordering) -> Option<ThreadId> {
- let number = value.map(|id| *id.0).unwrap_or(0);
+ let number = value.map(|id| id.0.get()).unwrap_or(0);
let number = self.0.swap(number, ordering);
if number == 0 { None } else { Some(ThreadId(unsafe { NonZero::new(number) })) }
}
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index b4c1322ed0c..292324f04d0 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -100,7 +100,7 @@ impl<T: DomObject> Deref for JS<T> {
debug_assert!(thread_state::get().is_script());
// We can only have &JS<T> from a rooted thing, so it's safe to deref
// it to &T.
- unsafe { &**self.ptr }
+ unsafe { &*self.ptr.get() }
}
}
@@ -115,7 +115,7 @@ unsafe impl<T: DomObject> JSTraceable for JS<T> {
trace_reflector(trc,
trace_info,
- (**self.ptr).reflector());
+ (*self.ptr.get()).reflector());
}
}
@@ -133,7 +133,7 @@ impl<T: Castable> LayoutJS<T> {
T: DerivedFrom<U>
{
debug_assert!(thread_state::get().is_layout());
- let ptr: *const T = *self.ptr;
+ let ptr: *const T = self.ptr.get();
LayoutJS {
ptr: unsafe { NonZero::new(ptr as *const U) },
}
@@ -146,7 +146,7 @@ impl<T: Castable> LayoutJS<T> {
debug_assert!(thread_state::get().is_layout());
unsafe {
if (*self.unsafe_get()).is::<U>() {
- let ptr: *const T = *self.ptr;
+ let ptr: *const T = self.ptr.get();
Some(LayoutJS {
ptr: NonZero::new(ptr as *const U),
})
@@ -161,7 +161,7 @@ impl<T: DomObject> LayoutJS<T> {
/// Get the reflector.
pub unsafe fn get_jsobject(&self) -> *mut JSObject {
debug_assert!(thread_state::get().is_layout());
- (**self.ptr).reflector().get_jsobject().get()
+ (*self.ptr.get()).reflector().get_jsobject().get()
}
}
@@ -397,7 +397,7 @@ impl<T: DomObject> LayoutJS<T> {
/// this is unsafe is what necessitates the layout wrappers.)
pub unsafe fn unsafe_get(&self) -> *const T {
debug_assert!(thread_state::get().is_layout());
- *self.ptr
+ self.ptr.get()
}
/// Returns a reference to the interior of this JS object. This method is
@@ -405,7 +405,7 @@ impl<T: DomObject> LayoutJS<T> {
/// mutate DOM nodes.
pub fn get_for_script(&self) -> &T {
debug_assert!(thread_state::get().is_script());
- unsafe { &**self.ptr }
+ unsafe { &*self.ptr.get() }
}
}
@@ -544,7 +544,7 @@ impl<T: DomObject> Root<T> {
debug_assert!(thread_state::get().is_script());
STACK_ROOTS.with(|ref collection| {
let RootCollectionPtr(collection) = collection.get().unwrap();
- unsafe { (*collection).root(&*(**unrooted).reflector()) }
+ unsafe { (*collection).root(&*(*unrooted.get()).reflector()) }
Root {
ptr: unrooted,
root_list: collection,
@@ -554,7 +554,7 @@ impl<T: DomObject> Root<T> {
/// Generate a new root from a reference
pub fn from_ref(unrooted: &T) -> Root<T> {
- Root::new(unsafe { NonZero::new(&*unrooted) })
+ Root::new(unsafe { NonZero::new(unrooted) })
}
}
@@ -569,7 +569,7 @@ impl<T: DomObject> Deref for Root<T> {
type Target = T;
fn deref(&self) -> &T {
debug_assert!(thread_state::get().is_script());
- unsafe { &**self.ptr.deref() }
+ unsafe { &*self.ptr.get() }
}
}
diff --git a/components/script/dom/bindings/weakref.rs b/components/script/dom/bindings/weakref.rs
index e6201bf3141..c6ba99ba680 100644
--- a/components/script/dom/bindings/weakref.rs
+++ b/components/script/dom/bindings/weakref.rs
@@ -86,19 +86,19 @@ impl<T: WeakReferenceable> WeakRef<T> {
/// Root a weak reference. Returns `None` if the object was already collected.
pub fn root(&self) -> Option<Root<T>> {
- unsafe { &**self.ptr }.value.get().map(Root::new)
+ unsafe { &*self.ptr.get() }.value.get().map(Root::new)
}
/// Return whether the weakly-referenced object is still alive.
pub fn is_alive(&self) -> bool {
- unsafe { &**self.ptr }.value.get().is_some()
+ unsafe { &*self.ptr.get() }.value.get().is_some()
}
}
impl<T: WeakReferenceable> Clone for WeakRef<T> {
fn clone(&self) -> WeakRef<T> {
unsafe {
- let box_ = &**self.ptr;
+ let box_ = &*self.ptr.get();
let new_count = box_.count.get() + 1;
box_.count.set(new_count);
WeakRef {
@@ -117,7 +117,7 @@ impl<T: WeakReferenceable> HeapSizeOf for WeakRef<T> {
impl<T: WeakReferenceable> PartialEq for WeakRef<T> {
fn eq(&self, other: &Self) -> bool {
unsafe {
- (**self.ptr).value.get() == (**other.ptr).value.get()
+ (*self.ptr.get()).value.get() == (*other.ptr.get()).value.get()
}
}
}
@@ -125,8 +125,8 @@ impl<T: WeakReferenceable> PartialEq for WeakRef<T> {
impl<T: WeakReferenceable> PartialEq<T> for WeakRef<T> {
fn eq(&self, other: &T) -> bool {
unsafe {
- match (**self.ptr).value.get() {
- Some(ptr) => *ptr == other,
+ match (*self.ptr.get()).value.get() {
+ Some(ptr) => ptr.get() == other,
None => false,
}
}
@@ -143,7 +143,7 @@ impl<T: WeakReferenceable> Drop for WeakRef<T> {
fn drop(&mut self) {
unsafe {
let (count, value) = {
- let weak_box = &**self.ptr;
+ let weak_box = &*self.ptr.get();
assert!(weak_box.count.get() > 0);
let count = weak_box.count.get() - 1;
weak_box.count.set(count);
@@ -151,7 +151,7 @@ impl<T: WeakReferenceable> Drop for WeakRef<T> {
};
if count == 0 {
assert!(value.is_none());
- mem::drop(Box::from_raw(*self.ptr));
+ mem::drop(Box::from_raw(self.ptr.get()));
}
}
}
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index 86059a2d7c6..46e5921e3ac 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -442,7 +442,7 @@ impl<'le> TElement for ServoLayoutElement<'le> {
fn get_data(&self) -> Option<&AtomicRefCell<ElementData>> {
unsafe {
self.get_style_and_layout_data().map(|d| {
- let ppld: &AtomicRefCell<PartialPersistentLayoutData> = &**d.ptr;
+ let ppld: &AtomicRefCell<PartialPersistentLayoutData> = &*d.ptr.get();
let psd: &AtomicRefCell<ElementData> = transmute(ppld);
psd
})
@@ -505,7 +505,7 @@ impl<'le> ServoLayoutElement<'le> {
fn get_partial_layout_data(&self) -> Option<&AtomicRefCell<PartialPersistentLayoutData>> {
unsafe {
- self.get_style_and_layout_data().map(|d| &**d.ptr)
+ self.get_style_and_layout_data().map(|d| &*d.ptr.get())
}
}
diff --git a/components/style/Cargo.toml b/components/style/Cargo.toml
index 1bb66273661..63f1a567124 100644
--- a/components/style/Cargo.toml
+++ b/components/style/Cargo.toml
@@ -15,7 +15,7 @@ doctest = false
[features]
gecko = ["nsstring_vendor", "rayon/unstable", "num_cpus", "style_traits/gecko"]
use_bindgen = ["bindgen", "regex"]
-servo = ["serde/unstable", "serde", "serde_derive", "heapsize", "heapsize_derive",
+servo = ["serde", "serde_derive", "heapsize", "heapsize_derive",
"style_traits/servo", "servo_atoms", "servo_config", "html5ever",
"cssparser/heapsize", "cssparser/serde", "encoding", "smallvec/heapsizeof",
"rayon/unstable", "servo_url"]
diff --git a/rust-commit-hash b/rust-commit-hash
index e1ba8e50159..15a99fcc6bd 100644
--- a/rust-commit-hash
+++ b/rust-commit-hash
@@ -1 +1 @@
-06fb4d25642a3f223db1441972dd5962085cfba1
+ced823e267c132fab172b1890b24073995e79ffa