summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBartłomiej Cieślar <bcieslar2001@gmail.com>2023-05-10 16:24:19 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-05-12 23:51:06 -0400
commit5cad28e73bf9a1a535fa9ed22800156c1ba2e6c8 (patch)
tree619d94d4a1bd477d3c9da9cc0834f2923502c1cf /testsuite
parent8b9b7dbc913b66795c283683c7fe1fb48672666d (diff)
downloadhaskell-5cad28e73bf9a1a535fa9ed22800156c1ba2e6c8.tar.gz
Cleanup of dynflags override in export renaming
The deprecation warnings are normally emitted whenever the name's GRE is being looked up, which calls the GHC.Rename.Env.addUsedGRE function. We do not want those warnings to be emitted when renaming export lists, so they are artificially turned off by removing all warning categories from DynFlags at the beginning of GHC.Tc.Gen.Export.rnExports. This commit removes that dependency by unifying the function used for GRE lookup in lookup_ie to lookupGreAvailRn and disabling the call to addUsedGRE in said function (the warnings are also disabled in a call to lookupSubBndrOcc_helper in lookupChildrenExport), as per #17957. This commit also changes the setting for whether to warn about deprecated names in addUsedGREs to be an explicit enum instead of a boolean.
Diffstat (limited to 'testsuite')
0 files changed, 0 insertions, 0 deletions