lookupBindGroupOcc: recommend names in the same namespace (#17593)
Previously, `lookupBindGroupOcc`'s error message would recommend all similar names in scope, regardless of whether they were type constructors, data constructors, or functions, leading to the confusion witnessed in #17593. This is easily fixed by only recommending names in the same namespace, using the `nameSpacesRelated` function. Fixes #17593. (cherry picked from commit c1975fac)
Showing
- compiler/basicTypes/Name.hs 7 additions, 5 deletionscompiler/basicTypes/Name.hs
- compiler/iface/LoadIface.hs 1 addition, 1 deletioncompiler/iface/LoadIface.hs
- compiler/rename/RnEnv.hs 10 additions, 3 deletionscompiler/rename/RnEnv.hs
- testsuite/tests/rename/should_fail/T17593.hs 9 additions, 0 deletionstestsuite/tests/rename/should_fail/T17593.hs
- testsuite/tests/rename/should_fail/T17593.stderr 7 additions, 0 deletionstestsuite/tests/rename/should_fail/T17593.stderr
- testsuite/tests/rename/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/rename/should_fail/all.T
Loading
Please register or sign in to comment