File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Feature gates
22
3- This chapter is intended to provide basic help for adding, removing, and
4- modifying feature gates.
3+ This chapter is intended to provide basic help for adding, removing, and modifying feature gates.
54
65For how rustc enforces and checks feature gates in the compiler pipeline,
76see [ Feature Gate Checking] [ feature-gate-check ] .
@@ -67,9 +66,8 @@ to follow when [removing a feature gate][removing]):
6766 Some("renamed to `$new_feature_name`"))
6867 ```
6968
70- 3 . Add a feature gate declaration with the new name to
71- ` rustc_feature/src/unstable.rs ` . It should look very similar to the old
72- declaration:
69+ 3 . Add a feature gate declaration with the new name to ` rustc_feature/src/unstable.rs ` .
70+ It should look very similar to the old declaration:
7371
7472 ``` rust,ignore
7573 /// description of feature
@@ -79,9 +77,8 @@ to follow when [removing a feature gate][removing]):
7977
8078## Stabilizing a feature
8179
82- See [ "Updating the feature-gate listing"] in the "Stabilizing Features" chapter
83- for instructions. There are additional steps you will need to take beyond just
84- updating the declaration!
80+ See [ "Updating the feature-gate listing"] in the "Stabilizing Features" chapter for instructions.
81+ There are additional steps you will need to take beyond just updating the declaration!
8582
8683
8784[ "Stability in code" ] : ./implementing-new-features.md#stability-in-code
You can’t perform that action at this time.
0 commit comments