diff options
| author | Ralf Jung <post@ralfj.de> | 2025-05-25 22:16:10 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-05-25 22:47:21 +0200 |
| commit | cf9ac0eec16bb863add283b58de5a25a131b142d (patch) | |
| tree | 96fcae96733f05ebf859eb77dcbb2e2299b9c7b5 /compiler/rustc_const_eval/messages.ftl | |
| parent | 283db70ace62a0ae704a624e43b68c2ee44b87a6 (diff) | |
| download | rust-cf9ac0eec16bb863add283b58de5a25a131b142d.tar.gz rust-cf9ac0eec16bb863add283b58de5a25a131b142d.zip | |
const-check: stop recommending the use of rustc_allow_const_fn_unstable
Diffstat (limited to 'compiler/rustc_const_eval/messages.ftl')
| -rw-r--r-- | compiler/rustc_const_eval/messages.ftl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/messages.ftl b/compiler/rustc_const_eval/messages.ftl index f4defd2aa13..7d4afc9d3d9 100644 --- a/compiler/rustc_const_eval/messages.ftl +++ b/compiler/rustc_const_eval/messages.ftl @@ -424,8 +424,7 @@ const_eval_unstable_in_stable_exposed = .unstable_sugg = if the {$is_function_call2 -> [true] caller *[false] function - } is not (yet) meant to be exposed to stable, add `#[rustc_const_unstable]` (this is what you probably want to do) - .bypass_sugg = otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (this requires team approval) + } is not (yet) meant to be exposed to stable const contexts, add `#[rustc_const_unstable]` const_eval_unstable_intrinsic = `{$name}` is not yet stable as a const intrinsic const_eval_unstable_intrinsic_suggestion = add `#![feature({$feature})]` to the crate attributes to enable |
