@@ -4,7 +4,7 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
4
4
LL | const fn bar() -> u32 { foo() }
5
5
| ^^^^^
6
6
|
7
- = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unsafe features
7
+ = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
8
8
help: if the caller is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do)
9
9
|
10
10
LL + #[rustc_const_unstable(feature = "...", issue = "...")]
@@ -22,7 +22,7 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
22
22
LL | const fn bar2() -> u32 { foo2() }
23
23
| ^^^^^^
24
24
|
25
- = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unsafe features
25
+ = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
26
26
help: if the caller is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do)
27
27
|
28
28
LL + #[rustc_const_unstable(feature = "...", issue = "...")]
@@ -57,7 +57,7 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
57
57
LL | foo()
58
58
| ^^^^^
59
59
|
60
- = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unsafe features
60
+ = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
61
61
help: if the caller is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do)
62
62
|
63
63
LL + #[rustc_const_unstable(feature = "...", issue = "...")]
@@ -75,7 +75,7 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
75
75
LL | const fn bar2_gated() -> u32 { foo2_gated() }
76
76
| ^^^^^^^^^^^^
77
77
|
78
- = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unsafe features
78
+ = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
79
79
help: if the caller is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do)
80
80
|
81
81
LL + #[rustc_const_unstable(feature = "...", issue = "...")]
@@ -93,7 +93,7 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
93
93
LL | pub(crate) const fn bar2_gated_stable_indirect() -> u32 { super::foo2_gated() }
94
94
| ^^^^^^^^^^^^^^^^^^^
95
95
|
96
- = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unsafe features
96
+ = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
97
97
help: if the caller is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do)
98
98
|
99
99
LL + #[rustc_const_unstable(feature = "...", issue = "...")]
@@ -111,7 +111,7 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
111
111
LL | const fn stable_indirect() -> u32 { foo2_gated() }
112
112
| ^^^^^^^^^^^^
113
113
|
114
- = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unsafe features
114
+ = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
115
115
help: if the caller is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do)
116
116
|
117
117
LL + #[rustc_const_unstable(feature = "...", issue = "...")]
0 commit comments