Skip to content
Snippets Groups Projects
Commit 0cb1db92 authored by sheaf's avatar sheaf Committed by Marge Bot
Browse files

Don't report used duplicate record fields as unused

This commit fixes the bug reported in #24035 in which the import of a
duplicate record field could be erroneously reported as unused.

The issue is that an import of the form "import M (fld)" can import
several different 'Name's, and we should only report an error if ALL
of those 'Name's are unused, not if ANY are.

Note [Reporting unused imported duplicate record fields]
in GHC.Rename.Names explains the solution to this problem.

Fixes #24035
parent 24d373a6
No related branches found
No related tags found
Loading
Showing with 173 additions and 39 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment