Remove GhcHint from TcRnNotInScope constructor
Ticket: #25874 (closed)
This is a tiny refactoring which:
- removes
GhcHint/ImportErrorfields from some constructors ofTcRnMessage, using theTcRnMessageDetailedmechanism instead to report this information:- removes the
GhcHintandImportErrorsfields fromTcRnNotInScope - removes the
GhcHintfield fromTcRnTermNameInType
- removes the
- ensures that we only include these hints and import errors when the
-fhelpful-errorsflag is turned on
Edited by sheaf