summaryrefslogtreecommitdiff
path: root/.gitlab/gen_ci.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-01-03 11:29:49 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-06 13:47:00 -0500
commitac39e8e97fbb69e4a786c1c29d6e477e7944f998 (patch)
tree782e33543d2319f3995aced236ebaba6d9d37d20 /.gitlab/gen_ci.hs
parent28f8c0ebbfe623784988745af75dcf3fdbdd3ca5 (diff)
downloadhaskell-ac39e8e97fbb69e4a786c1c29d6e477e7944f998.tar.gz
Only store Name in FunRhs rather than Id with knot-tied fields
All the issues here have been caused by #18758. The goal of the ticket is to be able to talk about things like `LTyClDecl GhcTc`. In the case of HsMatchContext, the correct "context" is whatever we want, and in fact storing just a `Name` is sufficient and correct context, even if the rest of the AST is storing typechecker Ids. So this reverts (#20415, !5579) which intended to get closed to #18758 but didn't really and introduced a few subtle bugs. Printing of an error message in #22695 would just hang, because we would attempt to print the `Id` in debug mode to assertain whether it was empty or not. Printing the Name is fine for the error message. Another consequence is that when `-dppr-debug` was enabled the compiler would hang because the debug printing of the Id would try and print fields which were not populated yet. This also led to 32070e6c2e1b4b7c32530a9566fe14543791f9a6 having to add a workaround for the `checkArgs` function which was probably a very similar bug to #22695. Fixes #22695
Diffstat (limited to '.gitlab/gen_ci.hs')
0 files changed, 0 insertions, 0 deletions