diff --git a/hubbub.rc b/hubbub.rc index b98242e..a5ecb9c 100644 --- a/hubbub.rc +++ b/hubbub.rc @@ -10,6 +10,9 @@ #[crate_id = "github.com/mozilla-servo/rust-hubbub#hubbub:0.1"]; #[crate_type = "lib"]; +#[feature(phase)]; +#[phase(syntax, link)] extern crate log; + pub mod hubbub; pub mod ll; diff --git a/hubbub.rs b/hubbub.rs index e552de7..3d543f4 100644 --- a/hubbub.rs +++ b/hubbub.rs @@ -211,8 +211,8 @@ pub mod tree_callbacks { use std::cast; use std::libc::{c_void, c_char}; use std::ptr::RawPtr; + use std::slice; use std::str; - use std::vec; use super::{NodeDataPtr, Ns, NullNs, HtmlNs, MathMlNs, SvgNs, XLinkNs, XmlNs, XmlNsNs}; use super::{QuirksMode, NoQuirks, LimitedQuirks, FullQuirks}; use super::{Attribute, Tag, Doctype, TreeHandlerPair}; @@ -258,7 +258,7 @@ pub mod tree_callbacks { pub fn from_hubbub_attributes(attributes: *ll::Attribute, n_attributes: u32) -> ~[Attribute] { debug!("from_hubbub_attributes n={:u}", n_attributes as uint); unsafe { - vec::from_fn(n_attributes as uint, |i| { + slice::from_fn(n_attributes as uint, |i| { let attribute = attributes.offset(i as int); Attribute { ns: from_hubbub_ns((*attribute).ns),