summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Eisenberg <richard.eisenberg@tweag.io>2022-07-15 09:52:18 -0400
committerRichard Eisenberg <richard.eisenberg@tweag.io>2022-07-15 09:52:18 -0400
commit092512a47094b1b987ab9ba119d0cb059ad22b34 (patch)
tree8c6b2cdba8f4774ef56a9bf82a1045d5a6e47a26
parent27406a5114d5641e203071a466fb89cdf569c18c (diff)
downloadhaskell-wip/T21684.tar.gz
Uncomment check for unlisted codeswip/T21684
-rw-r--r--compiler/GHC/Types/Error.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Types/Error.hs b/compiler/GHC/Types/Error.hs
index eec75c1ba5..a5dbe16ce3 100644
--- a/compiler/GHC/Types/Error.hs
+++ b/compiler/GHC/Types/Error.hs
@@ -260,8 +260,8 @@ fromGhcDiagnosticCode mk_ghc_dc =
where
check_code :: GhcDiagnosticCode -> GhcDiagnosticCode
check_code ghc_code =
-{- assertPpr (ghc_code `elem` allUsedDiagnosticCodes)
- (text "Unknown diagnostic code:" <+> ppr ghc_code) $ -}
+ assertPpr (ghc_code `elem` allUsedDiagnosticCodes)
+ (text "Unknown diagnostic code:" <+> ppr ghc_code) $
ghc_code
-- | A class identifying diagnostic message types within GHC.