summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T11429a.stderr
diff options
context:
space:
mode:
authorAlfredo Di Napoli <alfredo@well-typed.com>2021-03-30 10:21:06 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-05 20:39:54 -0400
commit3483c3de2aa9c1a48d2e8a9271eadc5e3f4da70d (patch)
treec89a2434db2b05c602343c8addc27def0c1cfd1a /testsuite/tests/driver/T11429a.stderr
parent495281215ae0fdcb296b2b30c1efd3a683006f42 (diff)
downloadhaskell-3483c3de2aa9c1a48d2e8a9271eadc5e3f4da70d.tar.gz
Correct warning for deprecated and unrecognised flags
Fixes #19616. This commit changes the `GHC.Driver.Errors.handleFlagWarnings` function to rely on the newly introduced `DiagnosticReason`. This allows us to correctly pretty-print the flags which triggered some warnings and in turn remove the cruft around this function (like the extra filtering and the `shouldPrintWarning` function.
Diffstat (limited to 'testsuite/tests/driver/T11429a.stderr')
-rw-r--r--testsuite/tests/driver/T11429a.stderr3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/driver/T11429a.stderr b/testsuite/tests/driver/T11429a.stderr
index c52b89e33d..4c41f5ed6b 100644
--- a/testsuite/tests/driver/T11429a.stderr
+++ b/testsuite/tests/driver/T11429a.stderr
@@ -1,2 +1,3 @@
-on the commandline: warning: unrecognised warning flag: -Wfoobar
+on the commandline: warning: [-Wunrecognised-warning-flags (in -Wdefault)]
+ unrecognised warning flag: -Wfoobar