From e75a65876850e07cf18a1c2bd4bf441c6c54d76d Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Thu, 29 Jan 2015 11:58:28 -0500 Subject: [PATCH 1/2] Fix build on 2015-01-28 nightly See https://github.com/rust-lang/rust/pull/21248. --- macros/src/lib.rs | 4 +++- src/lib.rs | 7 +++++-- src/namespace.rs | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/macros/src/lib.rs b/macros/src/lib.rs index e625ee2..01e237a 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -13,7 +13,9 @@ #![feature(plugin_registrar, quote, int_uint, box_syntax)] #![deny(warnings)] #![allow(unused_imports)] // for quotes -#![allow(unstable)] +#![feature(core)] +#![feature(rustc_private)] +#![feature(std_misc)] extern crate core; extern crate syntax; diff --git a/src/lib.rs b/src/lib.rs index 7601fb2..ac36a8b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,10 +10,13 @@ #![crate_name = "string_cache"] #![crate_type = "rlib"] -#![feature(plugin, old_orphan_check)] #![no_std] #![deny(warnings)] -#![allow(unstable)] +#![feature(alloc)] +#![feature(collections)] +#![feature(core)] +#![feature(hash)] +#![feature(plugin)] #[macro_use] extern crate core; diff --git a/src/namespace.rs b/src/namespace.rs index 1c78916..81667c5 100644 --- a/src/namespace.rs +++ b/src/namespace.rs @@ -7,7 +7,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![experimental="This may move as string-cache becomes less Web-specific."] +#![unstable(feature = "string_cache_namespace", + reason = "This may move as string-cache becomes less Web-specific.")] use core::prelude::*; From 539e6992d9e396a7a0f72795e4d33b35930a53af Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Thu, 29 Jan 2015 12:09:51 -0500 Subject: [PATCH 2/2] Fix warnings during `cargo test` too --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index ac36a8b..85f201c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,6 +17,7 @@ #![feature(core)] #![feature(hash)] #![feature(plugin)] +#![cfg_attr(test, feature(test, std_misc))] #[macro_use] extern crate core;