Skip to content

Commit eb0273a

Browse files
authored
Remove feature edition fields. (#1836)
1 parent d2ca260 commit eb0273a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/feature-gates.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ To remove a feature gate, follow these steps:
2525

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

3131
2. Add a modified version of the feature gate declaration that you just
3232
removed to `rustc_feature/src/removed.rs`:
3333

3434
```rust,ignore
3535
/// description of feature
36-
(removed, $old_feature_name, "$version", Some($tracking_issue_number), $edition,
36+
(removed, $old_feature_name, "$version", Some($tracking_issue_number),
3737
Some("$why_it_was_removed"))
3838
```
3939

@@ -50,7 +50,7 @@ to follow when [removing a feature gate][removing]):
5050

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

5656
2. Add a modified version of the old feature gate declaration that you just
@@ -59,7 +59,7 @@ to follow when [removing a feature gate][removing]):
5959
```rust,ignore
6060
/// description of feature
6161
/// Renamed to `$new_feature_name`
62-
(removed, $old_feature_name, "$version", Some($tracking_issue_number), $edition,
62+
(removed, $old_feature_name, "$version", Some($tracking_issue_number),
6363
Some("renamed to `$new_feature_name`"))
6464
```
6565

@@ -69,7 +69,7 @@ to follow when [removing a feature gate][removing]):
6969

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

7575

src/implementing_new_features.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ a new unstable feature:
128128

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

134-
where `$edition` has the type `Option<Edition>`, and is typically just `None`. If you haven't yet
134+
If you haven't yet
135135
opened a tracking issue (e.g. because you want initial feedback on whether the feature is likely
136136
to be accepted), you can temporarily use `None` - but make sure to update it before the PR is
137137
merged!

0 commit comments

Comments
 (0)