summary refs log tree commit diff
path: root/src/test/ui/span
AgeCommit message (Collapse)AuthorLines
2016-09-26Update E0425, E0446, E0449Jonathan Turner-0/+33
2016-09-16fix top level attr spansMikhail Modin-0/+32
2016-09-12Auto merge of #36354 - mikhail-m1:master, r=jonathandturnerbors-0/+66
fix span for errors E0537, E0535 & E0536 fix #36182 as part of #35233
2016-09-10fix span for errors E0537, E0535 & E0536Mikhail Modin-0/+66
2016-09-04Rollup merge of #36212 - razielgn:updated-e0493-to-new-format, r=jonathandturnerManish Goregaokar-0/+41
Updated e0493 to new format (+ bonus). Part of #35233. Fixes #35999. r? @jonathandturner I'm not satisfied with the bonus part, there has to be an easier way to reach into the `Drop`'s span implementation. I'm all ears. :)
2016-09-02Moved test on E0493 from compile-fail to ui.Federico Ravasio-0/+41
2016-08-31Update error message for lifetime of borrowed valuesJonathan Turner-2/+2
2016-08-18Auto merge of #35732 - jonathandturner:region_error_labels, r=nikomatsakisbors-0/+37
Move 'doesn't live long enough' errors to labels This patch moves the "doesn't live long enough" region-style errors to instead use labels. An example follows. Before: ``` error: `x` does not live long enough --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:26:18 | 26 | let y = &x; | ^ | note: reference must be valid for the block at 23:10... --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:23:11 | 23 | fn main() { | ^ note: ...but borrowed value is only valid for the block suffix following statement 0 at 25:18 --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:25:19 | 25 | let x = 1; | ^ ``` After: ``` error: `x` does not live long enough --> src/test/compile-fail/send-is-not-static-ensures-scoping.rs:26:18 | 26 | let y = &x; | ^ does not live long enough ... 32 | }; | - borrowed value only valid until here ... 35 | } | - borrowed value must be valid until here ``` r? @nikomatsakis
2016-08-17Move 'doesn't live long enough' errors to labelsJonathan Turner-0/+37
2016-08-16Use UI test to test spans, instead of forced line breakSeo Sanghyeon-0/+53
2016-08-12Correct span for pub_restricted fieldSeo Sanghyeon-0/+41