Skip to content

Commit e3f3291

Browse files
committed
clarify the role of rustc_const_unstable
1 parent cd7f600 commit e3f3291

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stability.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ marks an item as stabilized. Note that stable functions may use unstable things
5151

5252
The `#[rustc_const_unstable(feature = "foo", issue = "1234", reason = "lorem ipsum")]`
5353
has the same interface as the `unstable` attribute. It is used to mark
54-
`const fn` as having their constness be unstable. This allows you to make a
55-
function stable without stabilizing its constness or even just marking an existing
56-
stable function as `const fn` without instantly stabilizing the `const fn`ness.
54+
`const fn` as having their constness be unstable. Every function that is eventually intended
55+
to become const-stable should carry this attribute, no matter whether it is `#[stable]`
56+
or `#[unstable]`.
5757

5858
Furthermore this attribute is needed to mark an intrinsic as `const fn`, because
5959
there's no way to add `const` to functions in `extern` blocks for now.

0 commit comments

Comments
 (0)