Fix pretty printing of WARNING pragmas
There is still something quite unsavoury going on with WARNING pragma printing because the printing relies on the fact that for decl deprecations the SourceText of WarningTxt is empty. However, I let that lion sleep and just fixed things directly. Fixes #23465
Showing
- compiler/GHC/Hs/Decls.hs 1 addition, 1 deletioncompiler/GHC/Hs/Decls.hs
- compiler/GHC/Unit/Module/Warnings.hs 6 additions, 3 deletionscompiler/GHC/Unit/Module/Warnings.hs
- testsuite/tests/printer/Makefile 5 additions, 0 deletionstestsuite/tests/printer/Makefile
- testsuite/tests/printer/Test23464.hs 4 additions, 0 deletionstestsuite/tests/printer/Test23464.hs
- testsuite/tests/printer/all.T 1 addition, 0 deletionstestsuite/tests/printer/all.T
- testsuite/tests/warnings/should_compile/T23465.hs 4 additions, 0 deletionstestsuite/tests/warnings/should_compile/T23465.hs
- testsuite/tests/warnings/should_compile/T23465.stderr 9 additions, 0 deletionstestsuite/tests/warnings/should_compile/T23465.stderr
- testsuite/tests/warnings/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/warnings/should_compile/all.T
testsuite/tests/printer/Test23464.hs
0 → 100644
Please register or sign in to comment