@@ -5,14 +5,9 @@ LL | const fn bar() -> u32 { foo() }
55 | ^^^^^
66 |
77 = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
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)
8+ help: if the caller is not (yet) meant to be exposed to stable const contexts , add `#[rustc_const_unstable]`
99 |
1010LL + #[rustc_const_unstable(feature = "...", issue = "...")]
11- LL | const fn bar() -> u32 { foo() }
12- |
13- help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
14- |
15- LL + #[rustc_allow_const_fn_unstable(foo)]
1611LL | const fn bar() -> u32 { foo() }
1712 |
1813
@@ -23,14 +18,9 @@ LL | const fn bar2() -> u32 { foo2() }
2318 | ^^^^^^
2419 |
2520 = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
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)
21+ help: if the caller is not (yet) meant to be exposed to stable const contexts , add `#[rustc_const_unstable]`
2722 |
2823LL + #[rustc_const_unstable(feature = "...", issue = "...")]
29- LL | const fn bar2() -> u32 { foo2() }
30- |
31- help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
32- |
33- LL + #[rustc_allow_const_fn_unstable(foo2)]
3424LL | const fn bar2() -> u32 { foo2() }
3525 |
3626
@@ -40,14 +30,9 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
4030LL | let x = async { 13 };
4131 | ^^^^^^^^^^^^
4232 |
43- help: if the function is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do)
33+ help: if the function is not (yet) meant to be exposed to stable const contexts , add `#[rustc_const_unstable]`
4434 |
4535LL + #[rustc_const_unstable(feature = "...", issue = "...")]
46- LL | const fn bar3() -> u32 {
47- |
48- help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
49- |
50- LL + #[rustc_allow_const_fn_unstable(const_async_blocks)]
5136LL | const fn bar3() -> u32 {
5237 |
5338
@@ -58,14 +43,9 @@ LL | foo()
5843 | ^^^^^
5944 |
6045 = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
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)
46+ help: if the caller is not (yet) meant to be exposed to stable const contexts , add `#[rustc_const_unstable]`
6247 |
6348LL + #[rustc_const_unstable(feature = "...", issue = "...")]
64- LL | const fn bar3() -> u32 {
65- |
66- help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
67- |
68- LL + #[rustc_allow_const_fn_unstable(foo)]
6949LL | const fn bar3() -> u32 {
7050 |
7151
@@ -76,14 +56,9 @@ LL | const fn bar2_gated() -> u32 { foo2_gated() }
7656 | ^^^^^^^^^^^^
7757 |
7858 = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
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)
59+ help: if the caller is not (yet) meant to be exposed to stable const contexts , add `#[rustc_const_unstable]`
8060 |
8161LL + #[rustc_const_unstable(feature = "...", issue = "...")]
82- LL | const fn bar2_gated() -> u32 { foo2_gated() }
83- |
84- help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
85- |
86- LL + #[rustc_allow_const_fn_unstable(foo2)]
8762LL | const fn bar2_gated() -> u32 { foo2_gated() }
8863 |
8964
@@ -94,14 +69,9 @@ LL | pub(crate) const fn bar2_gated_stable_indirect() -> u32 { super::foo2_g
9469 | ^^^^^^^^^^^^^^^^^^^
9570 |
9671 = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
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)
72+ help: if the caller is not (yet) meant to be exposed to stable const contexts , add `#[rustc_const_unstable]`
9873 |
9974LL + #[rustc_const_unstable(feature = "...", issue = "...")]
100- LL | pub(crate) const fn bar2_gated_stable_indirect() -> u32 { super::foo2_gated() }
101- |
102- help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
103- |
104- LL + #[rustc_allow_const_fn_unstable(foo2)]
10575LL | pub(crate) const fn bar2_gated_stable_indirect() -> u32 { super::foo2_gated() }
10676 |
10777
@@ -112,14 +82,9 @@ LL | const fn stable_indirect() -> u32 { foo2_gated() }
11282 | ^^^^^^^^^^^^
11383 |
11484 = help: mark the callee as `#[rustc_const_stable_indirect]` if it does not itself require any unstable features
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)
85+ help: if the caller is not (yet) meant to be exposed to stable const contexts , add `#[rustc_const_unstable]`
11686 |
11787LL + #[rustc_const_unstable(feature = "...", issue = "...")]
118- LL | const fn stable_indirect() -> u32 { foo2_gated() }
119- |
120- help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
121- |
122- LL + #[rustc_allow_const_fn_unstable(foo2)]
12388LL | const fn stable_indirect() -> u32 { foo2_gated() }
12489 |
12590
0 commit comments