File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ modifying feature gates.
9
9
See [ "Stability in code"] for help with adding a new feature; this section just
10
10
covers how to add the feature gate * declaration* .
11
11
12
- Add a feature gate declaration to ` rustc_feature/src/active.rs ` in the active
12
+ First, add the feature name to ` rustc_span/src/symbol.rs ` in the ` Symbols {...} ` block.
13
+
14
+ Then, add a feature gate declaration to ` rustc_feature/src/active.rs ` in the active
13
15
` declare_features ` block:
14
16
15
17
``` rust,ignore
Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ a new unstable feature:
123
123
2 . Pick a name for the feature gate (for RFCs, use the name
124
124
in the RFC).
125
125
126
- 3 . Add a feature gate declaration to ` rustc_feature/src/active.rs `
127
- in the active ` declare_features ` block. See [ here ] [ add- feature- gate ] for
128
- detailed instructions.
126
+ 3 . Add a feature gate declaration to ` rustc_feature/src/active.rs ` in the active
127
+ ` declare_features ` block, and add the feature gate keyword to
128
+ ` rustc_span/src/symbol.rs ` . See [ here ] [ add-feature-gate ] for detailed instructions.
129
129
130
130
4 . Prevent usage of the new feature unless the feature gate is set.
131
131
You can check it in most places in the compiler using the
You can’t perform that action at this time.
0 commit comments