Skip to content

Commit bf1475b

Browse files
committed
Remove redundant help
1 parent 6959d03 commit bf1475b

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

compiler/rustc_const_eval/messages.ftl

-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ const_eval_unstable_in_stable_exposed =
421421
.bypass_sugg = otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval)
422422
423423
const_eval_unstable_intrinsic = `{$name}` is not yet stable as a const intrinsic
424-
.help = add `#![feature({$feature})]` to the crate attributes to enable
425424
const_eval_unstable_intrinsic_suggestion = add `#![feature({$feature})]` to the crate attributes to enable
426425
427426
const_eval_unterminated_c_string =

compiler/rustc_const_eval/src/errors.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ pub(crate) struct UnstableConstFn {
123123

124124
#[derive(Diagnostic)]
125125
#[diag(const_eval_unstable_intrinsic)]
126-
#[help]
127126
pub(crate) struct UnstableIntrinsic {
128127
#[primary_span]
129128
pub span: Span,
@@ -135,7 +134,7 @@ pub(crate) struct UnstableIntrinsic {
135134
applicability = "machine-applicable"
136135
)]
137136
pub suggestion: Option<Span>,
138-
#[help]
137+
#[help(const_eval_unstable_intrinsic_suggestion)]
139138
pub help: bool,
140139
}
141140

tests/ui/consts/const-unstable-intrinsic.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ error: `size_of_val` is not yet stable as a const intrinsic
2424
LL | unstable_intrinsic::size_of_val(&x);
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626
|
27-
= help: add `#![feature(unstable)]` to the crate attributes to enable
2827
help: add `#![feature(unstable)]` to the crate attributes to enable
2928
|
3029
LL + #![feature("unstable")]
@@ -36,7 +35,6 @@ error: `min_align_of_val` is not yet stable as a const intrinsic
3635
LL | unstable_intrinsic::min_align_of_val(&x);
3736
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3837
|
39-
= help: add `#![feature(unstable)]` to the crate attributes to enable
4038
help: add `#![feature(unstable)]` to the crate attributes to enable
4139
|
4240
LL + #![feature("unstable")]

0 commit comments

Comments
 (0)