1
Fork 0

Tweak unevaluated constant in pattern error

Silence errors that are implied by the errors in the `const` item definition.

Add a primary span label.
This commit is contained in:
Esteban Küber 2024-11-20 02:37:56 +00:00
parent c6205055e0
commit cc492edc9d
22 changed files with 37 additions and 165 deletions

View file

@ -92,6 +92,7 @@ mir_build_const_pattern_depends_on_generic_parameter =
constant pattern depends on a generic parameter
mir_build_could_not_eval_const_pattern = could not evaluate constant pattern
.label = could not evaluate constant
mir_build_deref_raw_pointer_requires_unsafe =
dereference of raw pointer is unsafe and requires unsafe block