Fix Trac #2723: keep track of record field names in the renamer
authorsimonpj@microsoft.com <unknown>
Tue, 28 Oct 2008 11:04:45 +0000 (11:04 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 28 Oct 2008 11:04:45 +0000 (11:04 +0000)
commit61bcd16d4f3d4cf84b26bf7bb92f16f0440b7071
tree8ed01b06f2d48004ad151b48fb61e9bab06809a0
parentd7b36bbbcd56ee14656223d02e32f5a1f52ea17b
Fix Trac #2723: keep track of record field names in the renamer

The idea here is that with -XNamedFieldPuns and -XRecordWildCards we don't
want to report shadowing errors for
let fld = <blah> in C { .. }
But to suppress such shadowing errors, the renamer needs to know that
'fld' *is* a record selector.  Hence the new NameSet in
TcRnFypes.RecFieldEnv
compiler/basicTypes/RdrName.lhs
compiler/rename/RnEnv.lhs
compiler/rename/RnSource.lhs
compiler/typecheck/TcEnv.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcRnTypes.lhs