File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ marks an item as stabilized. Note that stable functions may use unstable things
5151
5252The ` #[rustc_const_unstable(feature = "foo", issue = "1234", reason = "lorem ipsum")] `
5353has 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
5858Furthermore this attribute is needed to mark an intrinsic as ` const fn ` , because
5959there's no way to add ` const ` to functions in ` extern ` blocks for now.
You can’t perform that action at this time.
0 commit comments