]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/fmt/num.rs
core: Split apart the global `core` feature
[rust.git] / src / libcore / fmt / num.rs
index 122fffc5959056a99c3edbe3d97155ec878c0d66..6aaec20382ecffa22d8af77a2ad144e9ea741d61 100644 (file)
@@ -127,7 +127,7 @@ fn digit(&self, x: u8) -> u8 {
 
 /// A radix with in the range of `2..36`.
 #[derive(Clone, Copy, PartialEq)]
-#[unstable(feature = "core",
+#[unstable(feature = "fmt_radix",
            reason = "may be renamed or move to a different module")]
 pub struct Radix {
     base: u8,
@@ -152,7 +152,7 @@ fn digit(&self, x: u8) -> u8 {
 }
 
 /// A helper type for formatting radixes.
-#[unstable(feature = "core",
+#[unstable(feature = "fmt_radix",
            reason = "may be renamed or move to a different module")]
 #[derive(Copy, Clone)]
 pub struct RadixFmt<T, R>(T, R);
@@ -166,7 +166,7 @@ fn digit(&self, x: u8) -> u8 {
 /// use std::fmt::radix;
 /// assert_eq!(format!("{}", radix(55, 36)), "1j".to_string());
 /// ```
-#[unstable(feature = "core",
+#[unstable(feature = "fmt_radix",
            reason = "may be renamed or move to a different module")]
 pub fn radix<T>(x: T, base: u8) -> RadixFmt<T, Radix> {
     RadixFmt(x, Radix::new(base))