mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
37c569627c
Refactor constant evaluation to use a single error reporting function that reports a type-error-like message. Also, unify all error codes with the "constant evaluation error" message to just E0080, and similarly for a few other duplicate codes. The old situation was a total mess, and now that we have *something* we can further iterate on the UX.