summary refs log tree commit diff
path: root/src/test/ui/span
AgeCommit message (Collapse)AuthorLines
2016-11-01Improve "Doesn't live long enough" errorMikhail Modin-6/+690
case with different lifetime with spans
2016-10-31Auto merge of #37191 - zackmdavis:we_heard_you_the_first_time_really, ↵bors-0/+54
r=nikomatsakis introing one-time diagnostics: only emit "lint level defined here" once This is a revised resubmission of PR #34084 (which was closed due to inactivity on account of time constraints on the author's part). --- We introduce a new `one_time_diagnostics` field on `rustc::session::Session` to hold a hashset of diagnostic messages we've set once but don't want to see again (as uniquified by span and message text), "lint level defined here" being the motivating example dealt with here. This is in the matter of #24690. --- r? @nikomatsakis
2016-10-26deduplicate one-time diagnostics on lint ID as well as span and messageZack M. Davis-0/+54
Some lint-level attributes (like `bad-style`, or, more dramatically, `warnings`) can affect more than one lint; it seems fairer to point out the attribute once for each distinct lint affected. Also, a UI test is added. This remains in the matter of #24690.
2016-10-20improve "Doesn't live long enough" errorMikhail Modin-0/+1782
2016-10-06Better underline for E0057,E0060,E0061Andrea Corradi-0/+34
2016-09-30Update E0220 error formatJesus Garlea-1/+1
squash! Update E0220 error format Update Error E0220 to new format
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