-Wunused-pattern-binds: Recurse into patterns to check whether there's a splice
See the examples in #22057 which show we have to traverse deeply into a pattern to determine whether it contains a splice or not. The original implementation pointed this out but deemed this very shallow traversal "too expensive". Fixes #22057 I also fixed an oversight in !7821 which meant we lost a warning which was present in 9.2.2. Fixes #22067
Showing
- compiler/GHC/Rename/Bind.hs 43 additions, 14 deletionscompiler/GHC/Rename/Bind.hs
- testsuite/tests/rename/should_compile/T22057.hs 16 additions, 0 deletionstestsuite/tests/rename/should_compile/T22057.hs
- testsuite/tests/rename/should_compile/T22067.hs 9 additions, 0 deletionstestsuite/tests/rename/should_compile/T22067.hs
- testsuite/tests/rename/should_compile/T22067.stderr 6 additions, 0 deletionstestsuite/tests/rename/should_compile/T22067.stderr
- testsuite/tests/rename/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/rename/should_compile/all.T
Loading
Please register or sign in to comment