From 321880b62f413f450f4f75e321035e87354b2851 Mon Sep 17 00:00:00 2001 From: Smitty Date: Tue, 29 Jun 2021 09:04:09 -0400 Subject: [PATCH 1/2] Document how to mark features as incomplete This was changed in https://github.com/rust-lang/rust/pull/86446 so that incompleteness is included in the delcaration. --- src/feature-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/feature-gates.md b/src/feature-gates.md index db6c72ff8..102589624 100644 --- a/src/feature-gates.md +++ b/src/feature-gates.md @@ -27,6 +27,13 @@ For example: (active, non_ascii_idents, "1.0.0", Some(55467), None), ``` +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`: + +```rust,ignore +/// Allows unsized rvalues at arguments and parameters. +(incomplete, unsized_locals, "1.30.0", Some(48055), None), +``` + When added, the current version should be the one for the current nightly. Once the feature is moved to `accepted.rs`, the version is changed to that nightly version. From 0b003fcfe419b6a5474fcb9656bbf97629fee273 Mon Sep 17 00:00:00 2001 From: Smitty Date: Tue, 29 Jun 2021 11:33:02 -0400 Subject: [PATCH 2/2] Footerify link --- src/feature-gates.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/feature-gates.md b/src/feature-gates.md index 102589624..229281f2f 100644 --- a/src/feature-gates.md +++ b/src/feature-gates.md @@ -27,7 +27,8 @@ For example: (active, non_ascii_idents, "1.0.0", Some(55467), None), ``` -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`: +Features can be marked as incomplete, and trigger the warn-by-default [`incomplete_features` lint] +by setting their type to `incomplete`: ```rust,ignore /// Allows unsized rvalues at arguments and parameters. @@ -106,4 +107,5 @@ updating the declaration! ["Stability in code"]: ./implementing_new_features.md#stability-in-code +[`incomplete_features` lint]: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#incomplete-features ["Updating the feature-gate listing"]: ./stabilization_guide.md#updating-the-feature-gate-listing