Skip to content
  • Alfredo Di Napoli's avatar
    Correct warning for deprecated and unrecognised flags · 3483c3de
    Alfredo Di Napoli authored and Marge Bot's avatar Marge Bot committed
    Fixes #19616.
    
    This commit changes the `GHC.Driver.Errors.handleFlagWarnings` function
    to rely on the newly introduced `DiagnosticReason`. This allows us to
    correctly pretty-print the flags which triggered some warnings and in
    turn remove the cruft around this function (like the extra filtering
    and the `shouldPrintWarning` function.
    3483c3de