File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_const_eval
tests/ui/consts/min_const_fn Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -415,8 +415,8 @@ const_eval_unstable_const_fn = `{$def_path}` is not yet stable as a const fn
415415
416416const_eval_unstable_in_stable =
417417 const-stable function cannot use `#[feature({ $gate } )]`
418- .unstable_sugg = if it is not part of the public API , make this function unstably const
419- .bypass_sugg = otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (but requires team approval)
418+ .unstable_sugg = if the function is not (yet) meant to be stable , make this function unstably const
419+ .bypass_sugg = otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (but requires team approval)
420420
421421const_eval_unterminated_c_string =
422422 reading a null-terminated string starting at { $pointer } with no null found before end of allocation
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ error: const-stable function cannot use `#[feature(const_refs_to_cell)]`
2020LL | x.get();
2121 | ^
2222 |
23- help: if it is not part of the public API , make this function unstably const
23+ help: if the function is not (yet) meant to be stable , make this function unstably const
2424 |
2525LL + #[rustc_const_unstable(feature = "...", issue = "...")]
2626LL | const fn bar3() -> u32 {
2727 |
28- help: otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (but requires team approval)
28+ help: otherwise, as a last resort `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks (but requires team approval)
2929 |
3030LL + #[rustc_allow_const_fn_unstable(const_refs_to_cell)]
3131LL | const fn bar3() -> u32 {
You can’t perform that action at this time.
0 commit comments