Fix misattribution of `-Wunused-local-binds` warnings
authorHerbert Valerio Riedel <hvr@gnu.org>
Tue, 5 Apr 2016 13:15:47 +0000 (15:15 +0200)
committerBen Gamari <ben@smart-cactus.org>
Tue, 5 Apr 2016 13:46:58 +0000 (15:46 +0200)
commit1e6ec1249b4da88fec9024598c2183e6fc0e96cd
treeabf58c7119b1f7ec2400e97c15c6e1cdeddd81ee
parent2f3b8039e43bd1e2ce7d5af166301441e25b40c4
Fix misattribution of `-Wunused-local-binds` warnings

This fixes a bug where warnings actually controlled by

- `Opt_WarnUnusedMatches`
- `Opt_WarnUnusedTypePatterns`
- `Opt_WarnUnusedTopBinds`

were incorrectly reported as being controlled by
`Opt_WarnUnusedLocalBinds` as well

This bug was introduced in bb5afd3c274011c5ea302210b4c290ec1f83209c
while implementing #10752

Test Plan: ./validate still running -- testsuite output wiggles expected

Reviewers: barrucadu, quchen, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2077
19 files changed:
compiler/rename/RnEnv.hs
testsuite/tests/deSugar/should_compile/ds053.stderr
testsuite/tests/driver/werror.stderr
testsuite/tests/indexed-types/should_compile/UnusedTyVarWarnings.stderr
testsuite/tests/indexed-types/should_compile/UnusedTyVarWarningsNamedWCs.stderr
testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail05.stderr
testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail06.stderr
testsuite/tests/parser/should_compile/read014.stderr
testsuite/tests/rename/should_compile/T17a.stderr
testsuite/tests/rename/should_compile/T17d.stderr
testsuite/tests/rename/should_compile/T17e.stderr
testsuite/tests/rename/should_compile/T3371.stderr
testsuite/tests/rename/should_compile/T3449.stderr
testsuite/tests/rename/should_compile/T7145b.stderr
testsuite/tests/rename/should_compile/mc10.stderr
testsuite/tests/rename/should_compile/rn040.stderr
testsuite/tests/rename/should_compile/rn041.stderr
testsuite/tests/rename/should_compile/rn047.stderr
testsuite/tests/typecheck/should_compile/T2497.stderr