Diogo Sousa
2d7edf908d
Use full name to identify a macro in a FileName
.
...
Before this two macros with same name would be indistinguishable inside a
`FileName`. This caused a bug in incremental compilation (see #53097 ) since
two different macros would map out to the same `StableFilemapId`.
Fixes #53097 .
2018-09-19 01:12:13 +01:00
Vadim Petrochenkov
fa2d9fc4b9
Update UI tests
2018-02-26 20:24:02 +03:00
varkor
aa6cc6e189
Fix test in macro_backtrace
2018-01-26 16:56:37 +00:00
Esteban Küber
d4b8e99540
Move error checks out of span for easier to follow .stderr
2017-12-13 11:27:18 -08:00
Esteban Küber
b7bb67abd3
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-09 12:43:46 -08:00
Esteban Küber
fe89740957
Point to next token when it is in the expected line
2017-11-29 13:28:47 -08:00
Oliver Schneider
8937d6a6cf
Merge cfail and ui tests into ui tests
2017-11-24 11:32:35 +01:00
Alex Burka
b34a7ffb25
address review comments
2017-11-20 18:03:20 +00:00
Alex Burka
7a5a1f9857
use -Z flag instead of env var
2017-11-19 22:30:14 +00:00
Alex Burka
bcd1fedf03
add UI test
2017-11-19 22:22:22 +00:00