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

Use spans for -Z external-macro-backtrace #46605

Merged
merged 2 commits into from
Dec 14, 2017

Commits on Dec 9, 2017

  1. Use spans for -Z external-macro-backtrace

    ```
    % rustc ui/type-check/cannot_infer_local_or_vec.rs -Z external-macro-backtrace
    error[E0282]: type annotations needed
      --> <vec macros>:3:1
       |
    1  | / ( $ elem : expr ; $ n : expr ) => (
    2  | | $ crate :: vec :: from_elem ( $ elem , $ n ) ) ; ( $ ( $ x : expr ) , * ) => (
    3  | | < [ _ ] > :: into_vec ( box [ $ ( $ x ) , * ] ) ) ; ( $ ( $ x : expr , ) * )
       | | ^^^^^^^^^^^^^^^^^^^^^
       | | |
       | | cannot infer type for `T`
    4  | | => ( vec ! [ $ ( $ x ) , * ] )
       | |______________________________- in this expansion of `vec!`
       |
      ::: ui/type-check/cannot_infer_local_or_vec.rs
       |
    12 |       let x = vec![];
       |           -   ------ in this macro invocation
       |           |
       |           consider giving `x` a type
    
    error: aborting due to previous error
    ```
    estebank committed Dec 9, 2017
    Configuration menu
    Copy the full SHA
    b7bb67a View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2017

  1. Configuration menu
    Copy the full SHA
    d4b8e99 View commit details
    Browse the repository at this point in the history