-
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
Stabilize suggestion applicability field in json output #50486
Conversation
We should start work on stabilizing the field now so that it's ready for the edition. This also makes it easier for the rustfix preview. It's an extra field in JSON, I don't think this is something we need to worry much about stabilizing. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
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.
🎉
@@ -137,7 +131,6 @@ struct DiagnosticSpan { | |||
/// that should be sliced in atop this span. | |||
suggested_replacement: Option<String>, | |||
/// If the suggestion is approximate | |||
#[rustc_serialize_exclude_null] | |||
suggestion_applicability: Option<Applicability>, |
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.
Am I reading the code below correctly as: suggestion_applicability
is always Some
when suggested_replacement
is Some
? If so, we might want to document this here.
@bors: r+ |
📌 Commit 7e49317 has been approved by |
@bors r- The error in #50486 (comment) is still not fixed. |
@bors r=nrc |
📌 Commit bdac0f7 has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors r=nrc |
📌 Commit 5116598 has been approved by |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r- I'll need to update the ui tests |
☔ The latest upstream changes (presumably #50235) made this pull request unmergeable. Please resolve the merge conflicts. |
Ping from triage @Manishearth! It's been a while since we heard from you, will you have time to work on this again soon? |
@bors r=nrc |
📌 Commit b0e6638 has been approved by |
Stabilize suggestion applicability field in json output cc @killercup r? @nrc
☀️ Test successful - status-appveyor, status-travis |
cc @killercup
r? @nrc