File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ modifying feature gates.
99See [ "Stability in code"] for help with adding a new feature; this section just
1010covers how to add the feature gate * declaration* .
1111
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
1315` declare_features ` block:
1416
1517``` rust,ignore
Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ a new unstable feature:
1231232 . Pick a name for the feature gate (for RFCs, use the name
124124 in the RFC).
125125
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.
129129
1301304 . Prevent usage of the new feature unless the feature gate is set.
131131 You can check it in most places in the compiler using the
You can’t perform that action at this time.
0 commit comments