Implement -Wambiguous-fields
Fixes #18966. Adds a new warning -Wambiguous-fields for uses of field selectors or record updates that will be rejected in the future, when the DuplicateRecordFields extension is simplified per https://github.com/ghc-proposals/ghc-proposals/pull/366.
Showing
- compiler/GHC/Driver/Flags.hs 1 addition, 0 deletionscompiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs 2 additions, 0 deletionscompiler/GHC/Driver/Session.hs
- compiler/GHC/Tc/Gen/Expr.hs 17 additions, 2 deletionscompiler/GHC/Tc/Gen/Expr.hs
- compiler/GHC/Tc/Gen/Head.hs 29 additions, 2 deletionscompiler/GHC/Tc/Gen/Head.hs
- docs/users_guide/exts/duplicate_record_fields.rst 19 additions, 5 deletionsdocs/users_guide/exts/duplicate_record_fields.rst
- docs/users_guide/using-warnings.rst 20 additions, 0 deletionsdocs/users_guide/using-warnings.rst
- testsuite/tests/backpack/should_compile/T13323.stderr 10 additions, 0 deletionstestsuite/tests/backpack/should_compile/T13323.stderr
- testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr 5 additions, 0 deletions...uite/tests/overloadedrecflds/should_fail/DRFUnused.stderr
- testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail06.stderr 8 additions, 0 deletions...rloadedrecflds/should_fail/overloadedrecfldsfail06.stderr
- testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail11.stderr 5 additions, 0 deletions...rloadedrecflds/should_fail/overloadedrecfldsfail11.stderr
- testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail12.hs 3 additions, 0 deletions.../overloadedrecflds/should_fail/overloadedrecfldsfail12.hs
- testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail12.stderr 10 additions, 0 deletions...rloadedrecflds/should_fail/overloadedrecfldsfail12.stderr
- testsuite/tests/rename/should_compile/T11167_ambig.stderr 11 additions, 0 deletionstestsuite/tests/rename/should_compile/T11167_ambig.stderr
Loading
Please register or sign in to comment