diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-03 21:53:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-03 21:53:37 +0200 |
| commit | f574c0edb5a505d5b462c5fe02fb149120984730 (patch) | |
| tree | 3de696eb5d64c1144b9a9a35a3c177112cc02e96 /compiler/rustc_const_eval/messages.ftl | |
| parent | 644f06ec1fd8b17de40d42c699a61020db02a123 (diff) | |
| parent | 020216c31c1e4f1f56a689df8f04580504354613 (diff) | |
| download | rust-f574c0edb5a505d5b462c5fe02fb149120984730.tar.gz rust-f574c0edb5a505d5b462c5fe02fb149120984730.zip | |
Rollup merge of #141698 - oli-obk:ctfe-err-flip, r=RalfJung
Use the informative error as the main const eval error message r? `@RalfJung` I only did the minimal changes necessary to the const eval error machinery. I'd prefer not to mix test changes with refactorings 😆
Diffstat (limited to 'compiler/rustc_const_eval/messages.ftl')
| -rw-r--r-- | compiler/rustc_const_eval/messages.ftl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/messages.ftl b/compiler/rustc_const_eval/messages.ftl index 51bdd04267c..5bce6fb7ab2 100644 --- a/compiler/rustc_const_eval/messages.ftl +++ b/compiler/rustc_const_eval/messages.ftl @@ -89,9 +89,9 @@ const_eval_dyn_call_not_a_method = `dyn` call trying to call something that is not a method const_eval_error = {$error_kind -> - [static] could not evaluate static initializer - [const] evaluation of constant value failed - [const_with_path] evaluation of `{$instance}` failed + [static] evaluation of static initializer failed here + [const] evaluation of constant value failed here + [const_with_path] evaluation of `{$instance}` failed here *[other] {""} } |
