1
Fork 0

tweak rustc_allow_const_fn_unstable hint, and add back test for stable-const-can-only-call-stable-const

This commit is contained in:
Ralf Jung 2024-08-25 13:50:07 +02:00
parent 717aec0f8e
commit ba24121ad6
4 changed files with 17 additions and 9 deletions

View file

@ -419,7 +419,7 @@ 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
.bypass_sugg = otherwise `#[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