about summary refs log tree commit diff
path: root/src/libregex
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-01-07 15:48:16 -0800
committerBrian Anderson <banderson@mozilla.com>2015-01-08 03:07:23 -0800
commit1f70acbf4c4f345265a7626bd927187d3bfed91f (patch)
tree8f8c034b67d5284d8a5a1d056e5497e80bbfae60 /src/libregex
parent5364c4853fa61aced8fdf773d9de41b929a0d318 (diff)
downloadrust-1f70acbf4c4f345265a7626bd927187d3bfed91f.tar.gz
rust-1f70acbf4c4f345265a7626bd927187d3bfed91f.zip
Improvements to feature staging
This gets rid of the 'experimental' level, removes the non-staged_api
case (i.e. stability levels for out-of-tree crates), and lets the
staged_api attributes use 'unstable' and 'deprecated' lints.

This makes the transition period to the full feature staging design
a bit nicer.
Diffstat (limited to 'src/libregex')
-rw-r--r--src/libregex/lib.rs2
-rw-r--r--src/libregex/re.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libregex/lib.rs b/src/libregex/lib.rs
index d19ce3b460a..bbc2e315409 100644
--- a/src/libregex/lib.rs
+++ b/src/libregex/lib.rs
@@ -16,7 +16,7 @@
 #![crate_name = "regex"]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![experimental = "use the crates.io `regex` library instead"]
+#![unstable = "use the crates.io `regex` library instead"]
 #![staged_api]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
diff --git a/src/libregex/re.rs b/src/libregex/re.rs
index 16dd32b6be2..abc51d62404 100644
--- a/src/libregex/re.rs
+++ b/src/libregex/re.rs
@@ -255,7 +255,7 @@ impl Regex {
     }
 
     #[doc(hidden)]
-    #[experimental]
+    #[unstable]
     pub fn names_iter<'a>(&'a self) -> NamesIter<'a> {
         match *self {
             Native(ref n) => NamesIterNative(n.names.iter()),
@@ -410,7 +410,7 @@ pub struct Captures<'t> {
 }
 
 impl<'t> Captures<'t> {
-    #[allow(experimental)]
+    #[allow(unstable)]
     fn new(re: &Regex, search: &'t str, locs: CaptureLocs)
           -> Option<Captures<'t>> {
         if !has_match(&locs) {