From 0e5d9ad7673792271b8b4cfc6aff55375f1db936 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Wed, 21 Aug 2019 17:06:05 +0200 Subject: [PATCH] Update stability.md --- src/stability.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stability.md b/src/stability.md index 30f328b7..061ee287 100644 --- a/src/stability.md +++ b/src/stability.md @@ -11,6 +11,10 @@ The `#[unstable(feature = "foo", issue = "1234", reason = "lorem ipsum")]` attri marks an item as unstable. This infects all sub-items, where the attribute doesn't have to be reapplied. So if you apply this to a module, all items in the module will be unstable. +You can make specific sub-items stable by using the `#[stable]` attribute on them. +The stability scheme works similarly to how `pub` works. You can have public functions of +nonpublic modules and you can have stable functions in unstable modules or vice versa. + # stable The `#[stable(feature = "foo", "since = "1.420.69")]` attribute explicitly marks an item as