Pattern synonym names need to be in scope before renaming bindings (#9889)
I did a bit of refactoring at the same time, needless to say (cherry picked from commit 5830fc44)
Showing
- compiler/hsSyn/HsBinds.hs 10 additions, 0 deletionscompiler/hsSyn/HsBinds.hs
- compiler/hsSyn/HsUtils.hs 83 additions, 47 deletionscompiler/hsSyn/HsUtils.hs
- compiler/rename/RnBinds.hs 18 additions, 10 deletionscompiler/rename/RnBinds.hs
- compiler/rename/RnEnv.hs 1 addition, 1 deletioncompiler/rename/RnEnv.hs
- compiler/rename/RnNames.hs 15 additions, 11 deletionscompiler/rename/RnNames.hs
- compiler/rename/RnPat.hs 12 additions, 6 deletionscompiler/rename/RnPat.hs
- compiler/rename/RnSource.hs 18 additions, 8 deletionscompiler/rename/RnSource.hs
- compiler/typecheck/TcBinds.hs 20 additions, 35 deletionscompiler/typecheck/TcBinds.hs
- testsuite/tests/ghci/scripts/T8776.stdout 1 addition, 1 deletiontestsuite/tests/ghci/scripts/T8776.stdout
- testsuite/tests/patsyn/should_compile/T9889.hs 6 additions, 0 deletionstestsuite/tests/patsyn/should_compile/T9889.hs
- testsuite/tests/patsyn/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/patsyn/should_compile/all.T
- testsuite/tests/patsyn/should_fail/local.stderr 2 additions, 2 deletionstestsuite/tests/patsyn/should_fail/local.stderr
- testsuite/tests/patsyn/should_run/ghci.stdout 1 addition, 1 deletiontestsuite/tests/patsyn/should_run/ghci.stdout
Loading
Please register or sign in to comment