Implement -Wredundant-record-wildcards and -Wunused-record-wildcards
-Wredundant-record-wildcards warns when a .. pattern binds no variables. -Wunused-record-wildcards warns when none of the variables bound by a .. pattern are used. These flags are enabled by `-Wall`.
Showing
- compiler/hsSyn/HsPat.hs 2 additions, 2 deletionscompiler/hsSyn/HsPat.hs
- compiler/hsSyn/HsUtils.hs 46 additions, 27 deletionscompiler/hsSyn/HsUtils.hs
- compiler/main/DynFlags.hs 7 additions, 1 deletioncompiler/main/DynFlags.hs
- compiler/parser/Parser.y 5 additions, 5 deletionscompiler/parser/Parser.y
- compiler/parser/RdrHsSyn.hs 7 additions, 7 deletionscompiler/parser/RdrHsSyn.hs
- compiler/rename/RnBinds.hs 8 additions, 2 deletionscompiler/rename/RnBinds.hs
- compiler/rename/RnExpr.hs 6 additions, 2 deletionscompiler/rename/RnExpr.hs
- compiler/rename/RnPat.hs 26 additions, 6 deletionscompiler/rename/RnPat.hs
- compiler/rename/RnUtils.hs 66 additions, 0 deletionscompiler/rename/RnUtils.hs
- compiler/typecheck/TcTypeable.hs 2 additions, 2 deletionscompiler/typecheck/TcTypeable.hs
- docs/users_guide/8.10.1-notes.rst 45 additions, 0 deletionsdocs/users_guide/8.10.1-notes.rst
- docs/users_guide/using-warnings.rst 47 additions, 3 deletionsdocs/users_guide/using-warnings.rst
- libraries/base/GHC/IO/Handle.hs 2 additions, 2 deletionslibraries/base/GHC/IO/Handle.hs
- libraries/ghc-heap/GHC/Exts/Heap/Closures.hs 1 addition, 1 deletionlibraries/ghc-heap/GHC/Exts/Heap/Closures.hs
- libraries/ghci/GHCi/TH.hs 1 addition, 1 deletionlibraries/ghci/GHCi/TH.hs
- libraries/libiserv/src/Lib.hs 1 addition, 1 deletionlibraries/libiserv/src/Lib.hs
- testsuite/tests/rename/should_compile/T15957.hs 21 additions, 0 deletionstestsuite/tests/rename/should_compile/T15957.hs
- testsuite/tests/rename/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/rename/should_compile/all.T
- testsuite/tests/rename/should_fail/T15957_Fail.hs 32 additions, 0 deletionstestsuite/tests/rename/should_fail/T15957_Fail.hs
- testsuite/tests/rename/should_fail/T15957_Fail.stderr 36 additions, 0 deletionstestsuite/tests/rename/should_fail/T15957_Fail.stderr
Loading
Please register or sign in to comment