Skip to content
Snippets Groups Projects

Account for special GHC.Prim import in warnUnusedPackages

Closed Matthew Pickering requested to merge wip/unused-ghc-prim into master

The GHC.Prim import is treated quite specially primarily because there isn't an interface file for GHC.Prim. Therefore we record separately in the ModSummary if it's imported or not so we don't go looking for it.

This logic hasn't made it's way to -Wunused-packages so if you imported GHC.Prim then the warning would complain you didn't use -package ghc-prim.

Fixes #23212 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading