about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/messages.ftl
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-05-25 22:16:10 +0200
committerRalf Jung <post@ralfj.de>2025-05-25 22:47:21 +0200
commitcf9ac0eec16bb863add283b58de5a25a131b142d (patch)
tree96fcae96733f05ebf859eb77dcbb2e2299b9c7b5 /compiler/rustc_const_eval/messages.ftl
parent283db70ace62a0ae704a624e43b68c2ee44b87a6 (diff)
downloadrust-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.ftl3
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