[commit: ghc] wip/hie-module: Implement -Wredundant-record-wildcards and -Wunused-record-wildcards (1962621)
git at git.haskell.org
git at git.haskell.org
Fri Feb 15 10:15:51 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/hie-module
Link : http://ghc.haskell.org/trac/ghc/changeset/19626218566ea709b5f6f287d3c296b0c4021de2/ghc
>---------------------------------------------------------------
commit 19626218566ea709b5f6f287d3c296b0c4021de2
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date: Mon Feb 11 09:24:04 2019 +0000
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`.
>---------------------------------------------------------------
19626218566ea709b5f6f287d3c296b0c4021de2
compiler/hsSyn/HsPat.hs | 4 +-
compiler/hsSyn/HsUtils.hs | 73 ++++++++++++++--------
compiler/main/DynFlags.hs | 8 ++-
compiler/parser/Parser.y | 10 +--
compiler/parser/RdrHsSyn.hs | 14 ++---
compiler/rename/RnBinds.hs | 10 ++-
compiler/rename/RnExpr.hs | 8 ++-
compiler/rename/RnPat.hs | 32 ++++++++--
compiler/rename/RnUtils.hs | 66 +++++++++++++++++++
compiler/typecheck/TcTypeable.hs | 4 +-
docs/users_guide/8.10.1-notes.rst | 45 +++++++++++++
docs/users_guide/using-warnings.rst | 44 +++++++++++++
libraries/base/GHC/IO/Handle.hs | 4 +-
libraries/ghc-heap/GHC/Exts/Heap/Closures.hs | 2 +-
libraries/ghci/GHCi/TH.hs | 2 +-
libraries/libiserv/src/Lib.hs | 2 +-
testsuite/tests/rename/should_compile/T15957.hs | 21 +++++++
testsuite/tests/rename/should_compile/all.T | 1 +
testsuite/tests/rename/should_fail/T15957_Fail.hs | 32 ++++++++++
.../tests/rename/should_fail/T15957_Fail.stderr | 36 +++++++++++
testsuite/tests/rename/should_fail/T9437.stderr | 2 +-
testsuite/tests/rename/should_fail/all.T | 1 +
testsuite/tests/typecheck/should_compile/T4404.hs | 1 +
23 files changed, 362 insertions(+), 60 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 19626218566ea709b5f6f287d3c296b0c4021de2
More information about the ghc-commits
mailing list