-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Propose a variant if it is an enum for E0599 #49223
Propose a variant if it is an enum for E0599 #49223
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
) | ||
); | ||
if let Some(suggestion) = suggestion { | ||
err.note(&format!("did you mean `{}::{}`?", type_str, suggestion)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this a span_suggestion call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did at first, the rendering is ugly because we use the same span.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
span_suggestion_short
helps in many such cases, maybe here, too?
Ping from triage @cramertj! This PR needs your review! |
@bors r+ rollup |
📌 Commit 1f51840 has been approved by |
…E0599, r=cramertj Propose a variant if it is an enum for E0599 Fixes rust-lang#49192.
Fixes #49192.