-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
E0619 diagnostic occurs twice in rustc source #46837
Comments
cc @mikeyhew - could you use a different error number for this soft warning? |
I'm sort of surprised to see when rustc caught the duplication it only raised a warning. Maybe a hard error? |
I remember getting this warning, and was going to deal with it but forgot. @arielb1 creating a separate error code would not be ideal, because it's the same error. When I change the warning to a future-compatibility lint though, I believe this will go away since it won't use an error code. |
Sure enough. Change it to a future-compat warning. Just don't bother everyone with a duplicate error code. |
@arielb1 I mean, I think it's the warning that's bothering people, not the fact that it's the same error code. The point was to exactly replicate the error, but make it a warning instead. Anyway, I'll change it to a future-compat lint. I'm just going to create a placeholder tracking issue for now, without explaining the reason for the lint, so that this issue gets resolved sooner. |
PR #46664 injected a second use of E0619.
This causes a warning at compile-time for
rustc_typeck
:The text was updated successfully, but these errors were encountered: