summaryrefslogtreecommitdiff
path: root/testsuite/tests/warnings
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-08-18 12:54:51 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-08-23 13:35:26 -0400
commitc1acfd210153dc78748904467c6be023c702467a (patch)
tree35b9d956bf90d337c5cb05e7dd548510f0d07d78 /testsuite/tests/warnings
parent06aa8da540b971bb5756636ea5945c3382662b2f (diff)
downloadhaskell-c1acfd210153dc78748904467c6be023c702467a.tar.gz
driver: Only check for unused package warning in after succesful downsweep
Before we would check for the unused package warning even if the module graph was compromised due to an error in downsweep. This is easily fixed by pushing warmUnusedPackages into depanalE, and then returning the errors like the other downsweep errors. Fixes #20242
Diffstat (limited to 'testsuite/tests/warnings')
-rw-r--r--testsuite/tests/warnings/should_compile/UnusedPackages.stderr14
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuite/tests/warnings/should_compile/UnusedPackages.stderr b/testsuite/tests/warnings/should_compile/UnusedPackages.stderr
index 4eea3bfc8b..ba6a76207f 100644
--- a/testsuite/tests/warnings/should_compile/UnusedPackages.stderr
+++ b/testsuite/tests/warnings/should_compile/UnusedPackages.stderr
@@ -1,9 +1,9 @@
-[1 of 1] Compiling Main ( UnusedPackages.hs, UnusedPackages.o )
-Linking UnusedPackages ...
<no location info>: warning: [-Wunused-packages]
- The following packages were specified via -package or -package-id flags,
- but were not needed for compilation:
- - ghc
- - process
- - bytestring
+ The following packages were specified via -package or -package-id flags,
+ but were not needed for compilation:
+ - ghc
+ - process
+ - bytestring
+[1 of 1] Compiling Main ( UnusedPackages.hs, UnusedPackages.o )
+Linking UnusedPackages ...