File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -947,7 +947,7 @@ interface foo {
947
947
@since(version = 0.2.1)
948
948
b: func();
949
949
950
- @since(version = 0.2.2, feature = fancy-foo )
950
+ @since(version = 0.2.2)
951
951
c: func();
952
952
953
953
@unstable(feature = fancier-foo)
@@ -973,19 +973,14 @@ default unless explicitly opted-into by the developer.
973
973
974
974
Finally, the ` @deprecated ` gate on ` e ` indicates that ` e ` should no longer be
975
975
used starting version ` 0.2.2 ` . Both toolchains and host runtimes may warn users
976
- if they detect an ` @deprecated ` API is being used. An ` @deprecated ` gate is
976
+ if they detect an ` @deprecated ` API is being used. A ` @deprecated ` gate is
977
977
required to always be paired up with either a ` @since ` or ` @deprecated ` gate.
978
978
979
979
Together, these gates support a development flow in which new features start
980
980
with an ` @unstable ` gate while the details are still being hashed out. Then,
981
981
once the feature is stable (and, in a WASI context, voted upon), the
982
982
` @unstable ` gate is switched to a ` @since ` gate.
983
983
984
- Thus, ` c ` is enabled if the version is ` 0.2.2 ` or newer or the
985
- ` fancy-foo ` feature is explicitly enabled by the developer. The ` feature ` field
986
- can be removed once producer toolchains have updated their default version to
987
- enable the feature by default.
988
-
989
984
#### Feature gate syntax
990
985
991
986
The grammar that governs feature gate syntax is:
You can’t perform that action at this time.
0 commit comments