about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorNicholas Bishop <nbishop@nbishop.net>2023-10-29 13:16:02 -0400
committerGitHub <noreply@github.com>2023-10-30 02:16:02 +0900
commit0b947ebc55c676039c6429d78ba039b9f5cfd445 (patch)
tree2d9e850746c03f03e6ce29f094eb422ce880d193 /src/doc
parent190ca73e6fed9991d96488ba571e70c68b611ccd (diff)
downloadrust-0b947ebc55c676039c6429d78ba039b9f5cfd445.tar.gz
rust-0b947ebc55c676039c6429d78ba039b9f5cfd445.zip
Update name of "active" features to "unstable" (#1814)
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc-dev-guide/src/feature-gates.md12
-rw-r--r--src/doc/rustc-dev-guide/src/implementing_new_features.md6
-rw-r--r--src/doc/rustc-dev-guide/src/stabilization_guide.md2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/doc/rustc-dev-guide/src/feature-gates.md b/src/doc/rustc-dev-guide/src/feature-gates.md
index 8ad4fea1f9c..788f93d667d 100644
--- a/src/doc/rustc-dev-guide/src/feature-gates.md
+++ b/src/doc/rustc-dev-guide/src/feature-gates.md
@@ -20,12 +20,12 @@ See ["Stability in code"][adding] in the "Implementing new features" section for
 
 To remove a feature gate, follow these steps:
 
-1. Remove the feature gate declaration in `rustc_feature/src/active.rs`.
+1. Remove the feature gate declaration in `rustc_feature/src/unstable.rs`.
    It will look like this:
 
    ```rust,ignore
    /// description of feature
-   (active, $feature_name, "$version", Some($tracking_issue_number), $edition)
+   (unstable, $feature_name, "$version", Some($tracking_issue_number), $edition)
    ```
 
 2. Add a modified version of the feature gate declaration that you just
@@ -45,12 +45,12 @@ To remove a feature gate, follow these steps:
 To rename a feature gate, follow these steps (the first two are the same steps
 to follow when [removing a feature gate][removing]):
 
-1. Remove the old feature gate declaration in `rustc_feature/src/active.rs`.
+1. Remove the old feature gate declaration in `rustc_feature/src/unstable.rs`.
    It will look like this:
 
    ```rust,ignore
    /// description of feature
-   (active, $old_feature_name, "$version", Some($tracking_issue_number), $edition)
+   (unstable, $old_feature_name, "$version", Some($tracking_issue_number), $edition)
    ```
 
 2. Add a modified version of the old feature gate declaration that you just
@@ -64,12 +64,12 @@ to follow when [removing a feature gate][removing]):
    ```
 
 3. Add a feature gate declaration with the new name to
-   `rustc_feature/src/active.rs`. It should look very similar to the old
+   `rustc_feature/src/unstable.rs`. It should look very similar to the old
    declaration:
 
    ```rust,ignore
    /// description of feature
-   (active, $new_feature_name, "$version", Some($tracking_issue_number), $edition)
+   (unstable, $new_feature_name, "$version", Some($tracking_issue_number), $edition)
    ```
 
 
diff --git a/src/doc/rustc-dev-guide/src/implementing_new_features.md b/src/doc/rustc-dev-guide/src/implementing_new_features.md
index 01508889f4d..427589dabb2 100644
--- a/src/doc/rustc-dev-guide/src/implementing_new_features.md
+++ b/src/doc/rustc-dev-guide/src/implementing_new_features.md
@@ -123,12 +123,12 @@ a new unstable feature:
 
 1. Add the feature name to `rustc_span/src/symbol.rs` in the `Symbols {...}` block.
 
-1. Add a feature gate declaration to `rustc_feature/src/active.rs` in the active
+1. Add a feature gate declaration to `rustc_feature/src/unstable.rs` in the unstable
    `declare_features` block.
 
    ```rust ignore
    /// description of feature
-   (active, $feature_name, "CURRENT_RUSTC_VERSION", Some($tracking_issue_number), $edition)
+   (unstable, $feature_name, "CURRENT_RUSTC_VERSION", Some($tracking_issue_number), $edition)
    ```
 
    where `$edition` has the type `Option<Edition>`, and is typically just `None`. If you haven't yet
@@ -140,7 +140,7 @@ a new unstable feature:
 
    ```rust ignore
    /// Allows defining identifiers beyond ASCII.
-   (active, non_ascii_idents, "CURRENT_RUSTC_VERSION", Some(55467), None),
+   (unstable, non_ascii_idents, "CURRENT_RUSTC_VERSION", Some(55467), None),
    ```
 
    Features can be marked as incomplete, and trigger the warn-by-default [`incomplete_features`
diff --git a/src/doc/rustc-dev-guide/src/stabilization_guide.md b/src/doc/rustc-dev-guide/src/stabilization_guide.md
index 001ed25a56a..9bc70f65c82 100644
--- a/src/doc/rustc-dev-guide/src/stabilization_guide.md
+++ b/src/doc/rustc-dev-guide/src/stabilization_guide.md
@@ -109,7 +109,7 @@ to stabilize, something like (this example is taken from
 
 ```rust,ignore
 // pub(restricted) visibilities (RFC 1422)
-(active, pub_restricted, "CURRENT_RUSTC_VERSION", Some(32409)),
+(unstable, pub_restricted, "CURRENT_RUSTC_VERSION", Some(32409)),
 ```
 
 The above line should be moved down to the area for "accepted"