Skip to content

Commit 321880b

Browse files
committed
Document how to mark features as incomplete
This was changed in rust-lang/rust#86446 so that incompleteness is included in the delcaration.
1 parent 48d01f8 commit 321880b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/feature-gates.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ 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](https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#incomplete-features) by setting their type to `incomplete`:
31+
32+
```rust,ignore
33+
/// Allows unsized rvalues at arguments and parameters.
34+
(incomplete, unsized_locals, "1.30.0", Some(48055), None),
35+
```
36+
3037
When added, the current version should be the one for the current nightly.
3138
Once the feature is moved to `accepted.rs`, the version is changed to that
3239
nightly version.

0 commit comments

Comments
 (0)