Refactor lookupGRE_... functions
This commit consolidates all the logic for looking up something in the Global Reader Environment into the single function lookupGRE. This allows us to declaratively specify all the different modes of looking up in the GlobalRdrEnv, and avoids manually passing around filtering functions as was the case in e.g. the function GHC.Rename.Env.lookupSubBndrOcc_helper. ------------------------- Metric Decrease: T8095 ------------------------- ------------------------- Metric Increase: T8095 ------------------------- (cherry picked from commit 7f0a86ed)
Showing
- compiler/GHC/Data/FastString.hs 2 additions, 1 deletioncompiler/GHC/Data/FastString.hs
- compiler/GHC/Rename/Doc.hs 1 addition, 3 deletionscompiler/GHC/Rename/Doc.hs
- compiler/GHC/Rename/Env.hs 78 additions, 169 deletionscompiler/GHC/Rename/Env.hs
- compiler/GHC/Rename/HsType.hs 1 addition, 1 deletioncompiler/GHC/Rename/HsType.hs
- compiler/GHC/Rename/Names.hs 2 additions, 2 deletionscompiler/GHC/Rename/Names.hs
- compiler/GHC/Rename/Unbound.hs 3 additions, 2 deletionscompiler/GHC/Rename/Unbound.hs
- compiler/GHC/Rename/Utils.hs 1 addition, 1 deletioncompiler/GHC/Rename/Utils.hs
- compiler/GHC/Runtime/Loader.hs 1 addition, 1 deletioncompiler/GHC/Runtime/Loader.hs
- compiler/GHC/Tc/Errors.hs 1 addition, 1 deletioncompiler/GHC/Tc/Errors.hs
- compiler/GHC/Tc/Gen/Export.hs 5 additions, 1 deletioncompiler/GHC/Tc/Gen/Export.hs
- compiler/GHC/Tc/Module.hs 4 additions, 3 deletionscompiler/GHC/Tc/Module.hs
- compiler/GHC/Tc/Utils/Backpack.hs 4 additions, 4 deletionscompiler/GHC/Tc/Utils/Backpack.hs
- compiler/GHC/ThToHs.hs 0 additions, 1 deletioncompiler/GHC/ThToHs.hs
- compiler/GHC/Types/Name/Ppr.hs 5 additions, 4 deletionscompiler/GHC/Types/Name/Ppr.hs
- compiler/GHC/Types/Name/Reader.hs 242 additions, 59 deletionscompiler/GHC/Types/Name/Reader.hs
- testsuite/tests/overloadedrecflds/should_compile/BootFldReexport.stderr 5 additions, 5 deletions...s/overloadedrecflds/should_compile/BootFldReexport.stderr
- testsuite/tests/overloadedrecflds/should_fail/T16745.stderr 4 additions, 4 deletionstestsuite/tests/overloadedrecflds/should_fail/T16745.stderr
- testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.stderr 4 additions, 4 deletions...flds/should_fail/T18999_NoDisambiguateRecordFields.stderr
Loading
Please register or sign in to comment