From 066d5346e1138548f8c9d256ee951e8dfa7c212c Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Fri, 24 Apr 2015 13:42:00 -0700 Subject: [PATCH] Remove deprecated `unstable` attribute. Fixes a build warning in rustc nightly. Move the warning to a doc comment instead. --- src/sink/owned_dom.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sink/owned_dom.rs b/src/sink/owned_dom.rs index 670b5fbb..b4ff49d4 100644 --- a/src/sink/owned_dom.rs +++ b/src/sink/owned_dom.rs @@ -7,17 +7,16 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![unstable(feature="string_cache_namespace", - reason="This module uses unsafe code, has not been thoroughly \ - audited, and the performance gains vs. RcDom have not \ - been demonstrated")] - //! A simple DOM where every node is owned by its parent. //! //! Since ownership is more complicated during parsing, we actually //! build a different type and then transmute to the public `Node`. //! This is believed to be memory safe, but if you want to be extra //! careful you can use `RcDom` instead. +//! +//! **Warning: Unstable.** This module uses unsafe code, has not +//! been thoroughly audited, and the performance gains vs. RcDom +//! have not been demonstrated. use sink::common::{NodeEnum, Document, Doctype, Text, Comment, Element};