Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a custom diagnostic for type mismatches of constants #125548

Open
oli-obk opened this issue May 25, 2024 · 0 comments
Open

add a custom diagnostic for type mismatches of constants #125548

oli-obk opened this issue May 25, 2024 · 0 comments
Assignees
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@oli-obk
Copy link
Contributor

oli-obk commented May 25, 2024

Diagnostics changes here are meh, but I think we should fix those on the diagnostics side. Maybe we can relate a different TypeError kind for const kind mismatches that signal something is wrong in the source.

Originally posted by compiler-errors in #125451 (review)

The new diagnostic should specifically talk about the fact that the constants have different types

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 25, 2024
@oli-obk oli-obk self-assigned this May 25, 2024
@oli-obk oli-obk added A-diagnostics Area: Messages for errors, warnings, and lints and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

2 participants