-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 applicability to remaining suggestions #57699
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
|
||
forward!( | ||
#[deprecated(note = "Use `span_suggestion_with_applicability`")] | ||
pub fn span_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.
I'd personally just remove them and rename span_suggestion_with_applicability
-> span_suggestion
.
We don't provide any stability guarantees for compiler internals after all.
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 want to do that in a followup PR, after clippy updates.
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.
@euclio in that case you might want to leave a FIXME
@bors r+ |
📌 Commit 02843d9 has been approved by |
…enkov add applicability to remaining suggestions Fixes rust-lang#50723. I noticed that the suggestion methods on `DiagnosticBuilder` weren't actually deprecated due to rust-lang#57679. This PR deprecates them properly and fixes the remaining usages. There's also a PR for clippy at rust-lang/rust-clippy#3667.
Rollup of 7 pull requests Successful merges: - #57486 (Simplify `TokenStream` some more) - #57502 (make trait-aliases work across crates) - #57598 (Add missing unpretty option help message) - #57649 (privacy: Account for associated existential types) - #57659 (Fix release manifest generation) - #57699 (add applicability to remaining suggestions) - #57719 (Tweak `expand_node`) Failed merges: r? @ghost
Fixes #50723.
I noticed that the suggestion methods on
DiagnosticBuilder
weren't actually deprecated due to #57679. This PR deprecates them properly and fixes the remaining usages.There's also a PR for clippy at rust-lang/rust-clippy#3667.