rust/src/librustc_errors
bors 8954b16beb Auto merge of #46605 - estebank:macro-backtrace-spans, r=pnkfelix
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
```
2017-12-14 07:06:02 +00:00
..
Cargo.toml librustc_errors: Don't emit the same error message twice. 2017-10-25 15:01:06 +02:00
diagnostic_builder.rs use -Z flag instead of env var 2017-11-19 22:30:14 +00:00
diagnostic.rs Remove left over dead code from suggestion diagnostic refactoring 2017-11-16 16:36:49 +01:00
emitter.rs Auto merge of #46605 - estebank:macro-backtrace-spans, r=pnkfelix 2017-12-14 07:06:02 +00:00
lib.rs address review comments 2017-11-20 18:03:20 +00:00
lock.rs run rustfmt on librustc_errors folder 2016-10-18 23:13:02 +05:30
registry.rs run rustfmt on librustc_errors folder 2016-10-18 23:13:02 +05:30
snippet.rs Rollup merge of #46052 - oli-obk:rendered_diagnostics_in_json, r=petrochenkov 2017-11-22 01:12:59 +08:00
styled_buffer.rs Display \t in diagnostics code as four spaces 2017-11-24 08:24:31 -08:00