-
Notifications
You must be signed in to change notification settings - Fork 507
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
Ambiguous associated item lint triggered when an enum member is named 'Error' #1097
Comments
It happens to me as well on rustc 1.79.0 (prost 0.13.0). It didn't happen on version 0.12.6. It complains for the enum containing
|
I am running on enum ServiceState {
SERVICE_STATE_UNSPECIFIED = 0;
SERVICE_STATE_OK = 1;
SERVICE_STATE_ERROR = 2;
SERVICE_STATE_UNAVAILABLE = 3;
}; which causes
Interestingly even though the warning states that it will become a hard error in the future, it already is a hard error |
It seems the generated code uses |
0.13.0 is yanked, and 0.13.1 is on the way. |
0.13.1 has been published, thanks for reporting the issue. |
It works perfectly with 0.13.1. Thanks for fixing it quickly ❤️! |
Can also confirm, works with 0.13.1. You are awesome :) |
On
rustc 1.81.0-nightly (ed7e35f34 2024-07-06)
the following code will trigger theambiguous_associated_items
warning:The issue appears to be the generated
TryFrom
impl:It needs to disambiguate
Self::Error
:The text was updated successfully, but these errors were encountered: