aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Williams <willij87@mc-s083267.local>2015-12-02 23:45:02 +0000
committerJason Williams <willij87@mc-s083267.local>2015-12-03 07:32:07 +0000
commit1a8db9a07a0f7118488fb2ff120a92e3524c7b0e (patch)
tree315944f41af84002642196494d37b33a61dfe191
parenta8cbc2864367da09fb31fb5f984a7b2d31b90b93 (diff)
downloadservo-1a8db9a07a0f7118488fb2ff120a92e3524c7b0e.tar.gz
servo-1a8db9a07a0f7118488fb2ff120a92e3524c7b0e.zip
now using external ref_slice instead of the std version
-rw-r--r--components/script/Cargo.toml1
-rw-r--r--components/script/dom/node.rs2
-rw-r--r--components/script/dom/websocket.rs5
-rw-r--r--components/script/lib.rs2
-rw-r--r--components/servo/Cargo.lock6
-rw-r--r--ports/cef/Cargo.lock6
-rw-r--r--ports/gonk/Cargo.lock6
7 files changed, 24 insertions, 4 deletions
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml
index 06e5f325ccc..4d8fb8eaa49 100644
--- a/components/script/Cargo.toml
+++ b/components/script/Cargo.toml
@@ -88,3 +88,4 @@ serde = "0.6"
caseless = "0.1.0"
image = "0.5.0"
url = "0.5"
+ref_slice = "0.1.0"
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 1e08cac6083..30aa8e78eea 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -51,6 +51,7 @@ use js::jsapi::{JSContext, JSObject, JSRuntime};
use layout_interface::{LayoutChan, Msg};
use libc::{self, c_void, uintptr_t};
use parse::html::parse_html_fragment;
+use ref_slice::ref_slice;
use script_traits::UntrustedNodeAddress;
use selectors::matching::matches;
use selectors::parser::Selector;
@@ -61,7 +62,6 @@ use std::cmp::max;
use std::default::Default;
use std::iter::{self, FilterMap, Peekable};
use std::mem;
-use std::slice::ref_slice;
use std::sync::Arc;
use string_cache::{Atom, Namespace, QualName};
use style::properties::ComputedValues;
diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs
index f2060566877..0ab4bb2dd6b 100644
--- a/components/script/dom/websocket.rs
+++ b/components/script/dom/websocket.rs
@@ -27,12 +27,13 @@ use js::jsapi::{JS_GetArrayBufferData, JS_NewArrayBuffer};
use js::jsval::UndefinedValue;
use libc::{uint32_t, uint8_t};
use net_traits::hosts::replace_hosts;
+use ref_slice::ref_slice;
use script_task::ScriptTaskEventCategory::WebSocketEvent;
use script_task::{CommonScriptMsg, Runnable};
use std::borrow::ToOwned;
use std::cell::Cell;
+use std::ptr;
use std::sync::{Arc, Mutex};
-use std::{ptr, slice};
use util::str::DOMString;
use util::task::spawn_named;
use websocket::client::receiver::Receiver;
@@ -212,7 +213,7 @@ impl WebSocket {
// Step 4.
let protocols: &[DOMString] = protocols
.as_ref()
- .map_or(&[], |ref string| slice::ref_slice(string));
+ .map_or(&[], |ref string| ref_slice(string));
// Step 5.
for (i, protocol) in protocols.iter().enumerate() {
diff --git a/components/script/lib.rs b/components/script/lib.rs
index 583f837bfbf..f652100bc49 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -20,7 +20,6 @@
#![feature(nonzero)]
#![feature(on_unimplemented)]
#![feature(plugin)]
-#![feature(ref_slice)]
#![feature(slice_patterns)]
#![feature(str_utf16)]
#![feature(unicode)]
@@ -61,6 +60,7 @@ extern crate offscreen_gl_context;
#[macro_use]
extern crate profile_traits;
extern crate rand;
+extern crate ref_slice;
extern crate rustc_serialize;
extern crate rustc_unicode;
extern crate script_traits;
diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock
index cf0e7b9ccca..56eb392c5a4 100644
--- a/components/servo/Cargo.lock
+++ b/components/servo/Cargo.lock
@@ -1534,6 +1534,11 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
+name = "ref_slice"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+
+[[package]]
name = "regex"
version = "0.1.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1582,6 +1587,7 @@ dependencies = [
"plugins 0.0.1",
"profile_traits 0.0.1",
"rand 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)",
+ "ref_slice 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
"script_traits 0.0.1",
"selectors 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock
index c65101e5c03..d25f3f8b68f 100644
--- a/ports/cef/Cargo.lock
+++ b/ports/cef/Cargo.lock
@@ -1448,6 +1448,11 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
+name = "ref_slice"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+
+[[package]]
name = "regex"
version = "0.1.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1496,6 +1501,7 @@ dependencies = [
"plugins 0.0.1",
"profile_traits 0.0.1",
"rand 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)",
+ "ref_slice 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
"script_traits 0.0.1",
"selectors 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock
index 10b71f50801..3bc71a4b0e7 100644
--- a/ports/gonk/Cargo.lock
+++ b/ports/gonk/Cargo.lock
@@ -1428,6 +1428,11 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
+name = "ref_slice"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+
+[[package]]
name = "regex"
version = "0.1.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1476,6 +1481,7 @@ dependencies = [
"plugins 0.0.1",
"profile_traits 0.0.1",
"rand 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)",
+ "ref_slice 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
"script_traits 0.0.1",
"selectors 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",