Skip to content
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

fix [manual_flatten] help texts order #9156

Merged
merged 1 commit into from
Jul 13, 2022
Merged

fix [manual_flatten] help texts order #9156

merged 1 commit into from
Jul 13, 2022

Conversation

Rqnsom
Copy link
Contributor

@Rqnsom Rqnsom commented Jul 12, 2022

fixes #8948

Whenever suggestion for this lint does not fit in one line,
legacy solution has some unexpected/unhandled behavior:
lint will then generate two help messages which seem to be shown in the wrong order.
The second help message in that case will contain the suggestion.

The first help message always refers to a suggestion message,
and it should adapt depending on the location of the suggestion:

  • inline suggestion within the error/warning message
  • suggestion separated into a second help text

This is my first contribution here, so I hope I didn't miss anything for creating this PR.

changelog: fix [manual_flatten] help texts order

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Alexendoo (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 12, 2022
tests/ui/manual_flatten.rs Outdated Show resolved Hide resolved
Whenever suggestion for this lint does not fit in one line,
lint will generate two help messages. The second help message
will always contain the suggestion.

The first help message refers to suggestion message,
and it should adapt depending on the location of the suggestion:
- inline suggestion within the error/warning message
- suggestion separated into second help text
@Rqnsom Rqnsom changed the title fix [manual_flatten] help texts order fix [manual_flatten] help texts order Jul 13, 2022
@Alexendoo
Copy link
Member

That's great, thanks! Welcome to Clippy

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 13, 2022

📌 Commit 852c38c has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 13, 2022

⌛ Testing commit 852c38c with merge f78292a...

@bors
Copy link
Collaborator

bors commented Jul 13, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Alexendoo
Pushing f78292a to master...

@bors bors merged commit f78292a into rust-lang:master Jul 13, 2022
@Rqnsom Rqnsom deleted the manual_flatten branch July 13, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

manual_flatten: help texts are in the wrong order
4 participants