File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ marks an item as stabilized. Note that stable functions may use unstable things
49
49
50
50
## rustc_const_unstable
51
51
52
- The ` #[rustc_const_unstable(feature = "foo", issue = "1234", reason = "lorem ipsum")] `
53
- 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 .
52
+ The `#[ rustc_const_unstable(feature = "foo", issue = "1234", reason = "lorem
53
+ ipsum") ] ` has the same interface as the ` unstable` attribute. It is used to mark
54
+ ` const fn ` as having their constness be unstable. Every ` const fn ` with
55
+ stability attributes should carry either this attribute or
56
+ ` #[rustc_const_stable] ` (see below) .
57
57
58
58
Furthermore this attribute is needed to mark an intrinsic as ` const fn ` , because
59
59
there'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