Skip to content

Remove GhcHint from TcRnNotInScope constructor

sheaf requested to merge sheaf/ghc:T25874 into master

Ticket: #25874 (closed)

This is a tiny refactoring which:

  • removes GhcHint/ImportError fields from some constructors of TcRnMessage, using the TcRnMessageDetailed mechanism instead to report this information:
    • removes the GhcHint and ImportErrors fields from TcRnNotInScope
    • removes the GhcHint field from TcRnTermNameInType
  • ensures that we only include these hints and import errors when the -fhelpful-errors flag is turned on
Edited by sheaf

Merge request reports

Loading