diff options
| author | Ralf Jung <post@ralfj.de> | 2024-08-31 15:06:21 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-08-31 15:11:48 +0200 |
| commit | e3b1966137264ab6be7e42ce55b6bb6f5cea6413 (patch) | |
| tree | bcf46bbac2e41d9c08531de85850aa591e238065 /compiler/rustc_const_eval/messages.ftl | |
| parent | fa72f0763de6bc1596208fc1419883ce5aea0de4 (diff) | |
| download | rust-e3b1966137264ab6be7e42ce55b6bb6f5cea6413.tar.gz rust-e3b1966137264ab6be7e42ce55b6bb6f5cea6413.zip | |
make the const-unstable-in-stable error more clear
Diffstat (limited to 'compiler/rustc_const_eval/messages.ftl')
| -rw-r--r-- | compiler/rustc_const_eval/messages.ftl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/messages.ftl b/compiler/rustc_const_eval/messages.ftl index db788b6b151..8a6dfb89249 100644 --- a/compiler/rustc_const_eval/messages.ftl +++ b/compiler/rustc_const_eval/messages.ftl @@ -415,8 +415,8 @@ const_eval_unstable_const_fn = `{$def_path}` is not yet stable as a const fn const_eval_unstable_in_stable = const-stable function cannot use `#[feature({$gate})]` - .unstable_sugg = if it is not part of the public API, make this function unstably const - .bypass_sugg = otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (but requires team approval) + .unstable_sugg = if the function is not (yet) meant to be stable, make this function unstably const + .bypass_sugg = otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (but requires team approval) const_eval_unterminated_c_string = reading a null-terminated string starting at {$pointer} with no null found before end of allocation |
