Tweak output for 'add line' suggestion#109786
Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
|
For the "add context line" part of this PR, we could alternatively peek at the suggestion and see if it starts with |
c59590f to
00013ba
Compare
|
☔ The latest upstream changes (presumably #109884) made this pull request unmergeable. Please resolve the merge conflicts. |
compiler-errors
left a comment
There was a problem hiding this comment.
Perhaps we can do something like... checking that the span of the suggestion isn't DUMMY_SP (to avoid those use suggestions) or that the suggestion starts with #[derive...? Thoughts?
|
We already check for |
|
Maybe we should suppress this behavior if the suggestion ends in two newlines instead of: |
00013ba to
97258fe
Compare
|
I did a quick check for starts with |
97258fe to
def404a
Compare
|
☔ The latest upstream changes (presumably #110214) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r=me after rebase @rustbot author |
def404a to
9fadcc1
Compare
|
@bors r=compiler-errors |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (d37e2f7): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
Closes #108174