diff --git a/components/style/lib.rs b/components/style/lib.rs index 7741331ba45..eb83aff1bec 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -5,9 +5,13 @@ #![feature(plugin)] #![feature(int_uint)] #![feature(box_syntax)] +#![feature(core)] +#![feature(std_misc)] +#![feature(hash)] +#![feature(collections)] +#![feature(rustc_private)] #![allow(missing_copy_implementations)] -#![allow(unstable)] #[macro_use] extern crate log; #[macro_use] extern crate bitflags; diff --git a/components/style/stylesheets.rs b/components/style/stylesheets.rs index 4922ace53e9..4694ecdabd3 100644 --- a/components/style/stylesheets.rs +++ b/components/style/stylesheets.rs @@ -61,7 +61,7 @@ pub struct StyleRule { impl Stylesheet { pub fn from_bytes_iter>>( - mut input: I, base_url: Url, protocol_encoding_label: Option<&str>, + input: I, base_url: Url, protocol_encoding_label: Option<&str>, environment_encoding: Option, origin: Origin) -> Stylesheet { let mut bytes = vec!(); // TODO: incremental decoding and tokenization/parsing