Skip to content
Snippets Groups Projects
Commit 3d913cbe authored by sheaf's avatar sheaf Committed by Ben Gamari
Browse files

Fix deprecation of record fields

Commit 3f374399 inadvertently broke the deprecation/warning mechanism
for record fields due to its introduction of record field namespaces.

This patch ensures that, when a top-level deprecation is applied to
an identifier, it applies to all the record fields as well.
This is achieved by refactoring GHC.Rename.Env.lookupLocalTcNames, and
GHC.Rename.Env.lookupBindGroupOcc, to not look up a fixed number of
NameSpaces but to look up all NameSpaces and filter out the irrelevant
ones.

(cherry picked from commit 6143838a)
parent 6e044db1
No related branches found
No related tags found
No related merge requests found
Showing
with 332 additions and 173 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