Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info message for -Wall command #48765

Merged
merged 3 commits into from
Mar 14, 2018

Commits on Mar 6, 2018

  1. Add info message for -Wall command

    Users coming from other languages (namely C and C++) often expect
    to use a -Wall flag. Rustc doesn't support that, and previously it
    simply printed that it didn't recognize the "all" lint.
    
    This change makes rustc print out a help message, explaining:
    - Why there is no -Wall flag
    - How to view all the available warnings
    - Point out that the most commonly used warning is -Wunused
    - Instead of using a command-line flag, the user should consider
      a !#[warn(unused)] directive in the root of their crate.
    Phlosioneer committed Mar 6, 2018
    Configuration menu
    Copy the full SHA
    c97c7bf View commit details
    Browse the repository at this point in the history
  2. Fix trailing whitespace

    Phlosioneer committed Mar 6, 2018
    Configuration menu
    Copy the full SHA
    1246eef View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2018

  1. Update -Wall message based on feedback

    The reference to -Wunused was removed, and some phrasing was changed.
    Phlosioneer committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    c1337cd View commit details
    Browse the repository at this point in the history