Skip to content

Commit 57061ca

Browse files
Update name of "active" features to "unstable" (#1814)
1 parent b0ee9ec commit 57061ca

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/feature-gates.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ See ["Stability in code"][adding] in the "Implementing new features" section for
2020

2121
To remove a feature gate, follow these steps:
2222

23-
1. Remove the feature gate declaration in `rustc_feature/src/active.rs`.
23+
1. Remove the feature gate declaration in `rustc_feature/src/unstable.rs`.
2424
It will look like this:
2525

2626
```rust,ignore
2727
/// description of feature
28-
(active, $feature_name, "$version", Some($tracking_issue_number), $edition)
28+
(unstable, $feature_name, "$version", Some($tracking_issue_number), $edition)
2929
```
3030

3131
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:
4545
To rename a feature gate, follow these steps (the first two are the same steps
4646
to follow when [removing a feature gate][removing]):
4747

48-
1. Remove the old feature gate declaration in `rustc_feature/src/active.rs`.
48+
1. Remove the old feature gate declaration in `rustc_feature/src/unstable.rs`.
4949
It will look like this:
5050

5151
```rust,ignore
5252
/// description of feature
53-
(active, $old_feature_name, "$version", Some($tracking_issue_number), $edition)
53+
(unstable, $old_feature_name, "$version", Some($tracking_issue_number), $edition)
5454
```
5555

5656
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]):
6464
```
6565

6666
3. Add a feature gate declaration with the new name to
67-
`rustc_feature/src/active.rs`. It should look very similar to the old
67+
`rustc_feature/src/unstable.rs`. It should look very similar to the old
6868
declaration:
6969

7070
```rust,ignore
7171
/// description of feature
72-
(active, $new_feature_name, "$version", Some($tracking_issue_number), $edition)
72+
(unstable, $new_feature_name, "$version", Some($tracking_issue_number), $edition)
7373
```
7474

7575

src/implementing_new_features.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ a new unstable feature:
123123

124124
1. Add the feature name to `rustc_span/src/symbol.rs` in the `Symbols {...}` block.
125125

126-
1. Add a feature gate declaration to `rustc_feature/src/active.rs` in the active
126+
1. Add a feature gate declaration to `rustc_feature/src/unstable.rs` in the unstable
127127
`declare_features` block.
128128

129129
```rust ignore
130130
/// description of feature
131-
(active, $feature_name, "CURRENT_RUSTC_VERSION", Some($tracking_issue_number), $edition)
131+
(unstable, $feature_name, "CURRENT_RUSTC_VERSION", Some($tracking_issue_number), $edition)
132132
```
133133

134134
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:
140140

141141
```rust ignore
142142
/// Allows defining identifiers beyond ASCII.
143-
(active, non_ascii_idents, "CURRENT_RUSTC_VERSION", Some(55467), None),
143+
(unstable, non_ascii_idents, "CURRENT_RUSTC_VERSION", Some(55467), None),
144144
```
145145

146146
Features can be marked as incomplete, and trigger the warn-by-default [`incomplete_features`

src/stabilization_guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ to stabilize, something like (this example is taken from
109109

110110
```rust,ignore
111111
// pub(restricted) visibilities (RFC 1422)
112-
(active, pub_restricted, "CURRENT_RUSTC_VERSION", Some(32409)),
112+
(unstable, pub_restricted, "CURRENT_RUSTC_VERSION", Some(32409)),
113113
```
114114

115115
The above line should be moved down to the area for "accepted"

0 commit comments

Comments
 (0)