Skip to content

Commit c319110

Browse files
authored
Document how to mark features as incomplete (#1151)
* Document how to mark features as incomplete This was changed in rust-lang/rust#86446 so that incompleteness is included in the delcaration. * Footerify link
1 parent 48d01f8 commit c319110

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/feature-gates.md

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ For example:
2727
(active, non_ascii_idents, "1.0.0", Some(55467), None),
2828
```
2929

30+
Features can be marked as incomplete, and trigger the warn-by-default [`incomplete_features` lint]
31+
by setting their type to `incomplete`:
32+
33+
```rust,ignore
34+
/// Allows unsized rvalues at arguments and parameters.
35+
(incomplete, unsized_locals, "1.30.0", Some(48055), None),
36+
```
37+
3038
When added, the current version should be the one for the current nightly.
3139
Once the feature is moved to `accepted.rs`, the version is changed to that
3240
nightly version.
@@ -99,4 +107,5 @@ updating the declaration!
99107

100108

101109
["Stability in code"]: ./implementing_new_features.md#stability-in-code
110+
[`incomplete_features` lint]: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#incomplete-features
102111
["Updating the feature-gate listing"]: ./stabilization_guide.md#updating-the-feature-gate-listing

0 commit comments

Comments
 (0)