File tree 3 files changed +1
-5
lines changed
compiler/rustc_const_eval
3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,6 @@ const_eval_unstable_in_stable_exposed =
421
421
.bypass_sugg = otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
422
422
423
423
const_eval_unstable_intrinsic = `{ $name } ` is not yet stable as a const intrinsic
424
- .help = add `#![feature({ $feature } )]` to the crate attributes to enable
425
424
const_eval_unstable_intrinsic_suggestion = add `#![feature({ $feature } )]` to the crate attributes to enable
426
425
427
426
const_eval_unterminated_c_string =
Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ pub(crate) struct UnstableConstFn {
123
123
124
124
#[ derive( Diagnostic ) ]
125
125
#[ diag( const_eval_unstable_intrinsic) ]
126
- #[ help]
127
126
pub ( crate ) struct UnstableIntrinsic {
128
127
#[ primary_span]
129
128
pub span : Span ,
@@ -135,7 +134,7 @@ pub(crate) struct UnstableIntrinsic {
135
134
applicability = "machine-applicable"
136
135
) ]
137
136
pub suggestion : Option < Span > ,
138
- #[ help]
137
+ #[ help( const_eval_unstable_intrinsic_suggestion ) ]
139
138
pub help : bool ,
140
139
}
141
140
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ error: `size_of_val` is not yet stable as a const intrinsic
24
24
LL | unstable_intrinsic::size_of_val(&x);
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
26
|
27
- = help: add `#![feature(unstable)]` to the crate attributes to enable
28
27
help: add `#![feature(unstable)]` to the crate attributes to enable
29
28
|
30
29
LL + #![feature("unstable")]
@@ -36,7 +35,6 @@ error: `min_align_of_val` is not yet stable as a const intrinsic
36
35
LL | unstable_intrinsic::min_align_of_val(&x);
37
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
37
|
39
- = help: add `#![feature(unstable)]` to the crate attributes to enable
40
38
help: add `#![feature(unstable)]` to the crate attributes to enable
41
39
|
42
40
LL + #![feature("unstable")]
You can’t perform that action at this time.
0 commit comments