-
Notifications
You must be signed in to change notification settings - Fork 710
Remove dead code #6188
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
Remove dead code #6188
Conversation
I'm on the fence. The code there is in the state to have roundtrip property for code like if flag(some-condition)
buildable: True
else
buildable: False which is ugly when pretty-printed as: if flag(some-condition)
else
buildable: False That's because One way, is to pretty-print that as if !flag(some-condition)
buildable: False But that violates roundtrip property. If the code is removed, then there should be an issue to think how to resolve (or not) the above. |
Well, I agree that you probably don't want to print empty |
That dead code reminds me of an unsolved issue, but when it's gone there won't be anything reminding of that ugliness... |
Soo... When is that issue going to be resolved? Why does it mean we can't remove currently dead code? I want my patch to hit master within the next month, which is quite impossible when the code here stays this way. Of course, we could always attach a |
How about replacing the dead code with a comment and an issue reference which everyone ca remember rather than storing this obscure information only in @phadej's brain? |
Is there any news on this, @phadej? Should I add a comment referencing this MR, expressing your plans to get back to it at some point? The deleted code is still in version control, so it's not like we could never recover it... Quite the contrary, leaving dead code seems like a code smell to me. |
I opened #6193 to track the issue here. |
I can't manually restart the failing jobs, short of force pushing with a different commit message. I don't know why the same two jobs keep running into the timeout. |
Could anyone merge this please? This is still holding back https://gitlab.haskell.org/ghc/ghc/merge_requests/963 to land on master... Apparently CI turned green thanks to some kind stranger restarting the failing jobs for me - thank you! |
I would love to but you still haven't addressed the comments I gave you on IRC i.e. adding a comment with a link to the issue. |
Ah, I thought you meant I should link from the commit message, which I did. Fair enough. |
This would trip up the improved pattern match checker from [!963](https://gitlab.haskell.org/ghc/ghc/merge_requests/963). The removed code is related to maintaining the round-trip property, so should be re-introduced at some point. This is tracked in haskell#6193.
Thank you! :) What is the story for updating the GHC's Cabal submodule? Should I just submit a bump along with my MR? I suspect there will be some breakage... |
This would trip up the improved pattern match checker from !963.