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 support for rustc's -Z terminal-width. #8427

Merged
merged 4 commits into from
Jul 9, 2020

Commits on Jul 8, 2020

  1. Add support for rustc's -Z terminal-width.

    This commit adds support for rustc's `-Z terminal-width` flag, which is
    used to trim diagnostic output to fit within the current terminal.
    
    Co-authored-by: David Wood <david@davidtw.co>
    Signed-off-by: David Wood <david@davidtw.co>
    estebank and davidtwco committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    c46b9a7 View commit details
    Browse the repository at this point in the history
  2. Make -Z terminal-width opt-in.

    This commit modifies the parsing of `-Z terminal-width` so that it can
    optionally take a value and only uses `accurate_err_width` when the user
    does not provide a value - therefore making the emission of `-Z
    terminal-width` opt-in.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    6d740aa View commit details
    Browse the repository at this point in the history
  3. Add documentation for -Z terminal-width

    This commit adds relevant documentation for the `-Z terminal-width`
    flag.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    4177f66 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2020

  1. Introduce TtyWidth

    This commit introduces a `TtyWidth` enum which enables better handling
    of the tty-width on Windows.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    af924d4 View commit details
    Browse the repository at this point in the history