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

Show multiline spans in full if short enough #37369

Merged
merged 2 commits into from
Nov 29, 2016

Commits on Nov 22, 2016

  1. Show multiline spans in full if short enough

    When dealing with multiline spans that span few lines, show the complete
    span instead of restricting to the first character of the first line.
    
    For example, instead of:
    
    ```
    % ./rustc foo.rs
    error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied
      --> foo.rs:13:9
       |
    13 |    foo(1 + bar(x,
       |        ^ trait `{integer}: std::ops::Add<()>` not satisfied
       |
    ```
    
    show
    
    ```
    % ./rustc foo.rs
    error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied
      --> foo.rs:13:9
       |
    13 |      foo(1 + bar(x,
       |  ________^ starting here...
    14 | |            y),
       | |_____________^ ...ending here: trait `{integer}: std::ops::Add<()>` not satisfied
       |
    ```
    estebank committed Nov 22, 2016
    Configuration menu
    Copy the full SHA
    eb53ca3 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2016

  1. review comments

    estebank committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    b7982bb View commit details
    Browse the repository at this point in the history