@@ -5,14 +5,9 @@ LL | const fn bar() -> u32 { foo() }
5
5
| ^^^^^
6
6
|
7
7
= 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]`
9
9
|
10
10
LL + #[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)]
16
11
LL | const fn bar() -> u32 { foo() }
17
12
|
18
13
@@ -23,14 +18,9 @@ LL | const fn bar2() -> u32 { foo2() }
23
18
| ^^^^^^
24
19
|
25
20
= 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]`
27
22
|
28
23
LL + #[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)]
34
24
LL | const fn bar2() -> u32 { foo2() }
35
25
|
36
26
@@ -40,14 +30,9 @@ error: const function that might be (indirectly) exposed to stable cannot use `#
40
30
LL | let x = async { 13 };
41
31
| ^^^^^^^^^^^^
42
32
|
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]`
44
34
|
45
35
LL + #[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)]
51
36
LL | const fn bar3() -> u32 {
52
37
|
53
38
@@ -58,14 +43,9 @@ LL | foo()
58
43
| ^^^^^
59
44
|
60
45
= 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]`
62
47
|
63
48
LL + #[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)]
69
49
LL | const fn bar3() -> u32 {
70
50
|
71
51
@@ -76,14 +56,9 @@ LL | const fn bar2_gated() -> u32 { foo2_gated() }
76
56
| ^^^^^^^^^^^^
77
57
|
78
58
= 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]`
80
60
|
81
61
LL + #[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)]
87
62
LL | const fn bar2_gated() -> u32 { foo2_gated() }
88
63
|
89
64
@@ -94,14 +69,9 @@ LL | pub(crate) const fn bar2_gated_stable_indirect() -> u32 { super::foo2_g
94
69
| ^^^^^^^^^^^^^^^^^^^
95
70
|
96
71
= 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]`
98
73
|
99
74
LL + #[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)]
105
75
LL | pub(crate) const fn bar2_gated_stable_indirect() -> u32 { super::foo2_gated() }
106
76
|
107
77
@@ -112,14 +82,9 @@ LL | const fn stable_indirect() -> u32 { foo2_gated() }
112
82
| ^^^^^^^^^^^^
113
83
|
114
84
= 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]`
116
86
|
117
87
LL + #[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)]
123
88
LL | const fn stable_indirect() -> u32 { foo2_gated() }
124
89
|
125
90
0 commit comments