Skip to content

Convert diagnostics in GHC.Rename.Bind to proper TcRnMessage (#20115)

I removed all occurrences of TcRnUnknkownMessage in GHC.Rename.Bind.

The following TcRnMessage messages were introduced:

  • TcRnMultipleFixityDecls
  • TcRnIllegalPatternSynonymDecl
  • TcRnIllegalClassBiding
  • TcRnOrphanCompletePragma
  • TcRnEmptyCase
  • TcRnNonStdGuards
  • TcRnDuplicateSigDecl
  • TcRnMisplacedSigDecl
  • TcRnUnexpectedDefaultSig
  • TcRnBindInBootFile
  • TcRnDuplicateMinimalSig

I also created two helper types: NonStandardGuards and DeclSort and one new test: RnPatternSynonymFail.

Edited by Andrei Borzenkov

Merge request reports