[Git][ghc/ghc][wip/az/ghc-9.12-epa-backports] 9 commits: testsuite: allow metric increase for TcPlugin_RewritePerf

Alan Zimmerman (@alanz) gitlab at gitlab.haskell.org
Wed Nov 13 20:33:56 UTC 2024



Alan Zimmerman pushed to branch wip/az/ghc-9.12-epa-backports at Glasgow Haskell Compiler / GHC


Commits:
8de7406f by Zubin Duggal at 2024-11-12T13:42:19+05:30
testsuite: allow metric increase for TcPlugin_RewritePerf
this is an empty commit to allow this backports batch to be merged.

Metric Increase:
    TcPlugin_RewritePerf

- - - - -
bdeac4aa by Alan Zimmerman at 2024-11-13T18:12:29+00:00
EPA: Remove AddEpann commit 7

EPA: Remove [AddEpAnn] from HYPHEN in Parser.y

The return value is never used, as it is part of the backpack
configuration parsing.

EPA: Remove last [AddEpAnn] usages

Remove residual usage in GHC. It is still used
- In haddock TTG extension point definitions (to be removed)
- Some check-exact residual, to be removed
- Comments around DisambECP in PostProcess

EPA: Clean up [AddEpAnn] from check-exact

There is one left, to be cleaned up when we remove AddEpann itself

EPA: Remove [AddEpAnn] from haddock

The TTG extension points need a value, it is not critical what that
value is, in most cases.

EPA: Remove AddEpAnn from HsRuleAnn

EPA: Remove AddEpAnn from HsCmdArrApp
(cherry picked from commit dbc77ce804c0f410f3f2894a158d0ee899ce64f5)

- - - - -
44c1ee09 by Alan Zimmerman at 2024-11-13T18:12:29+00:00
EPA: Remove AddEpAnn Commit 8/final

EPA: Remove AddEpAnn from AnnList

EPA: Remove AddEpAnn from GrhsAnn

This is the last actual use

EPA: Remove NameAdornment from NameAnn

Also rework AnnContext to use EpToken, and AnnParen

EPA: Remove AddEpAnn.  Final removal

There are now none left, except for in a large note/comment in
PostProcess, describing the historical transition to the
disambiguation infrastructure

(cherry picked from commit 8a6691c3a947a21c7dcc9772d6cc396894c4756f)

- - - - -
2ad51490 by Alan Zimmerman at 2024-11-13T18:12:29+00:00
EPA: Remove AnnKeywordId.

This was used as part of AddEpAnn, and is no longer needed.

Also remove all the haddock comments about which of are attached to
the various parts of the AST.  This is now clearly captured in the
appropriate TTG extension points, and the `ExactPrint.hs` file.

(cherry picked from commit d5e7990ca9637ebee2293b22815fa0c393231baf)

- - - - -
0259bda6 by Alan Zimmerman at 2024-11-13T18:12:29+00:00
EPA: Remove some unused functions

(cherry picked from commit b349fd1b92ddab6dad968fe731b84a16d9d2de51)

- - - - -
12606f6b by Alan Zimmerman at 2024-11-13T18:12:29+00:00
EPA: use explicit vertical bar token for ExplicitSum / SumPat

(cherry picked from commit f859d61c4832b16ae3b4dd14aad5cb41b0051de3)

- - - - -
280c4516 by Alan Zimmerman at 2024-11-13T18:12:29+00:00
EPA: Bring in last EpToken usages

For import declarations, NameAnnCommas and NPlusKPat.

And remove anchor, it is the same as epaLocationRealSrcSpan.

(cherry picked from commit 0bc94360908011167284ee4c283c343350cbba78)

- - - - -
2ef0074d by Alan Zimmerman at 2024-11-13T18:19:00+00:00
EPA: Correctly capture leading semis in decl list

Closes #25467

(cherry picked from commit 0614abef967c2ee9fb83955f18460715160a557a)

- - - - -
d72c5615 by Alan Zimmerman at 2024-11-13T20:06:07+00:00
EPA: Capture location of '_' for wild card type binder

And keep track of promotion status in HsExplicitTupleTy, so the
round-trip ppr test works for it.

Updates Haddock output too, using the PromotionFlag in
HsExplicitTupleTy.

Closes #25454

(cherry picked from commit 9ad9ac63abed33aa48d4df40142d2809bdfd1ff0)

- - - - -


17 changed files:

- compiler/GHC.hs
- compiler/GHC/Core/Class.hs
- compiler/GHC/Core/DataCon.hs
- compiler/GHC/Hs.hs
- compiler/GHC/Hs/Binds.hs
- compiler/GHC/Hs/Decls.hs
- compiler/GHC/Hs/Dump.hs
- compiler/GHC/Hs/Expr.hs
- compiler/GHC/Hs/ImpExp.hs
- compiler/GHC/Hs/Pat.hs
- compiler/GHC/Hs/Type.hs
- compiler/GHC/Hs/Utils.hs
- compiler/GHC/HsToCore/Quote.hs
- compiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Parser.y
- compiler/GHC/Parser/Annotation.hs
- compiler/GHC/Parser/Lexer.x


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/b047af9fc0f98fe5b68c6b9f4523b08d8501a486...d72c56156715b5775b32a2c2ad795e7bb81382e4

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/b047af9fc0f98fe5b68c6b9f4523b08d8501a486...d72c56156715b5775b32a2c2ad795e7bb81382e4
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241113/77780d33/attachment-0001.html>


More information about the ghc-commits mailing list