diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-07 11:32:09 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-06-07 13:42:30 +0200 |
| commit | 17946c22b1d7abd2dd990bf6998c8491b534fe62 (patch) | |
| tree | 3483beea28e6753a04055cc17a0145e77b036b30 /compiler/rustc_const_eval/messages.ftl | |
| parent | 1dc9ae6d104205f194d84643d13fd01904a0010d (diff) | |
| download | rust-17946c22b1d7abd2dd990bf6998c8491b534fe62.tar.gz rust-17946c22b1d7abd2dd990bf6998c8491b534fe62.zip | |
const-eval error: always say in which item the error occurred
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
Diffstat (limited to 'compiler/rustc_const_eval/messages.ftl')
| -rw-r--r-- | compiler/rustc_const_eval/messages.ftl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/rustc_const_eval/messages.ftl b/compiler/rustc_const_eval/messages.ftl index 5bce6fb7ab2..7f9abe8aa8e 100644 --- a/compiler/rustc_const_eval/messages.ftl +++ b/compiler/rustc_const_eval/messages.ftl @@ -88,11 +88,9 @@ const_eval_division_overflow = const_eval_dyn_call_not_a_method = `dyn` call trying to call something that is not a method -const_eval_error = {$error_kind -> - [static] evaluation of static initializer failed here - [const] evaluation of constant value failed here - [const_with_path] evaluation of `{$instance}` failed here - *[other] {""} +const_eval_error = evaluation of `{$instance}` failed {$num_frames -> + [0] here + *[other] inside this call } const_eval_exact_div_has_remainder = |
