about summary refs log tree commit diff
path: root/src/libsyntax/test_snippet.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-12-14 07:06:02 +0000
committerbors <bors@rust-lang.org>2017-12-14 07:06:02 +0000
commit8954b16beb844fcac0cefe229e1c714a17de16e5 (patch)
tree07e11d44c2885af6b96cf276f5c62d9d3ad4acaf /src/libsyntax/test_snippet.rs
parentf03e06762ea6c4116c360185c0e9b6f209b76959 (diff)
parentd4b8e99540ed815f7c0187cf2db8a2e4c0a61d8f (diff)
downloadrust-8954b16beb844fcac0cefe229e1c714a17de16e5.tar.gz
rust-8954b16beb844fcac0cefe229e1c714a17de16e5.zip
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
```
Diffstat (limited to 'src/libsyntax/test_snippet.rs')
0 files changed, 0 insertions, 0 deletions