Set unstable feature names appropriately

* `core` - for the core crate
* `hash` - hashing
* `io` - io
* `path` - path
* `alloc` - alloc crate
* `rand` - rand crate
* `collections` - collections crate
* `std_misc` - other parts of std
* `test` - test crate
* `rustc_private` - everything else
This commit is contained in:
Brian Anderson
2015-01-22 18:22:03 -08:00
parent f86bcc1543
commit cd6d9eab5d
148 changed files with 864 additions and 741 deletions

View File

@@ -12,7 +12,7 @@
//! Operations on ASCII strings and characters
#![unstable(feature = "unnamed_feature",
#![unstable(feature = "std_misc",
reason = "unsure about placement and naming")]
use iter::IteratorExt;
@@ -23,7 +23,7 @@ use string::String;
use vec::Vec;
/// Extension methods for ASCII-subset only operations on owned strings
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
pub trait OwnedAsciiExt {
/// Convert the string to ASCII upper case:
@@ -38,7 +38,7 @@ pub trait OwnedAsciiExt {
}
/// Extension methods for ASCII-subset only operations on string slices
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
pub trait AsciiExt<T = Self> {
/// Check if within the ASCII range.
@@ -60,7 +60,7 @@ pub trait AsciiExt<T = Self> {
fn eq_ignore_ascii_case(&self, other: &Self) -> bool;
}
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
impl AsciiExt<String> for str {
#[inline]
@@ -86,7 +86,7 @@ impl AsciiExt<String> for str {
}
}
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
impl OwnedAsciiExt for String {
#[inline]
@@ -102,7 +102,7 @@ impl OwnedAsciiExt for String {
}
}
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
impl AsciiExt<Vec<u8>> for [u8] {
#[inline]
@@ -129,7 +129,7 @@ impl AsciiExt<Vec<u8>> for [u8] {
}
}
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
impl OwnedAsciiExt for Vec<u8> {
#[inline]
@@ -149,7 +149,7 @@ impl OwnedAsciiExt for Vec<u8> {
}
}
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
impl AsciiExt for u8 {
#[inline]
@@ -173,7 +173,7 @@ impl AsciiExt for u8 {
}
}
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "would prefer to do this in a more general way")]
impl AsciiExt for char {
#[inline]
@@ -216,7 +216,7 @@ impl AsciiExt for char {
/// - Any other chars in the range [0x20,0x7e] are not escaped.
/// - Any other chars are given hex escapes.
/// - Unicode escapes are never generated by this function.
#[unstable(feature = "unnamed_feature",
#[unstable(feature = "std_misc",
reason = "needs to be updated to use an iterator")]
pub fn escape_default<F>(c: u8, mut f: F) where
F: FnMut(u8),