-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[manual_assert
]: Preserve comments in the suggestion
#9479
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
Another option would be to downgrade the applicability when there are comments, but at which level should this be done? |
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 think re-adding the comments on fix is good UX. Users can still do what they want with it.
There is one re-formatting glitch that I was wondering about, otherwise this is mergeworthy.
Weird. For some reason it couldn't compile the fixed code!? |
I don't get the error locally using |
Give it a try after a rebase onto master, 628a854 came after the base of this PR which includes Manishearth/compiletest-rs#258 |
306c83e
to
22be60b
Compare
Because `Sugg` helper does not simplify multiple negations
After rebasing could see and fix the tests |
Thank you! @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
close #7730
changelog: [
manual_assert
]: Preserve comments in the suggestion