summaryrefslogtreecommitdiff
path: root/testsuite/tests/pmcheck
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2019-11-20 15:44:49 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-11-30 02:58:34 -0500
commit5aba5d3218330f8ce127aa7767efcbb6f63a2db1 (patch)
treed11ea424fedf51668f5d9f14c972e6f1dca6693a /testsuite/tests/pmcheck
parent316f24319e151446c83cbb0f2997a73e19fe4aa3 (diff)
downloadhaskell-5aba5d3218330f8ce127aa7767efcbb6f63a2db1.tar.gz
Remove HasSrcSpan (#17494)
Metric Decrease: haddock.compiler
Diffstat (limited to 'testsuite/tests/pmcheck')
-rw-r--r--testsuite/tests/pmcheck/should_compile/pmc009.hs4
-rw-r--r--testsuite/tests/pmcheck/should_compile/pmc009.stderr2
2 files changed, 1 insertions, 5 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/pmc009.hs b/testsuite/tests/pmcheck/should_compile/pmc009.hs
index 08f130de33..95999b2de5 100644
--- a/testsuite/tests/pmcheck/should_compile/pmc009.hs
+++ b/testsuite/tests/pmcheck/should_compile/pmc009.hs
@@ -2,10 +2,6 @@ module HsUtils where
import GHC.Hs.Binds
import SrcLoc
-
--- | We have to be careful to normalise @SrcSpanLess (LHsBind)@ to
--- @LHsBindLR l r@ before passing the representative of @unLoc bind@ on to
--- @mkOneConFull@, otherwise this triggers a panic in @zipTvSubst@.
addPatSynSelector:: LHsBind p -> [a]
addPatSynSelector bind
| PatSynBind _ _ <- unLoc bind
diff --git a/testsuite/tests/pmcheck/should_compile/pmc009.stderr b/testsuite/tests/pmcheck/should_compile/pmc009.stderr
index d046b38d0f..9614f2497b 100644
--- a/testsuite/tests/pmcheck/should_compile/pmc009.stderr
+++ b/testsuite/tests/pmcheck/should_compile/pmc009.stderr
@@ -1,4 +1,4 @@
-pmc009.hs:10:1: warning: [-Wincomplete-patterns (in -Wextra)]
+pmc009.hs:6:1: warning: [-Wincomplete-patterns (in -Wextra)]
Pattern match(es) are non-exhaustive
In an equation for ‘addPatSynSelector’: Patterns not matched: L _ _