about summary refs log tree commit diff
path: root/src/test/ui/lifetime-errors
AgeCommit message (Collapse)AuthorLines
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-1974/+0
2018-08-09Updated tests after rebase.David Wood-29/+29
2018-08-07Auto merge of #52450 - PramodBisht:issue/52413, r=estebankbors-22/+21
Closes #52413: Provide structured suggestion instead of label Provide structured suggestion instead of label r? @estebank
2018-08-06Disable some nice region errors in NLL mode.David Wood-127/+141
2018-08-06#52413: addressed @estebank's NitPramod Bisht-19/+19
2018-08-05Closes #52413: Provide structured suggestion instead of labelPramod Bisht-22/+21
2018-07-26Use better spans for dummy accesses used in matchesMatthew Jasper-11/+5
2018-07-25improve heuristics for what makes an interesting constraintNiko Matsakis-8/+8
2018-07-25remove unnecessary `blame_span` from `report_region_errors`Niko Matsakis-31/+34
2018-07-20Update tests for new NLL mutability errorsMatthew Jasper-2/+2
2018-06-19Update the existing UI tests to reflect diagnostic changes in NLL.Felix S. Klock II-1/+13
2018-06-19NLL: Updates to diagnostic output in `test/ui`.Felix S. Klock II-0/+4
2018-05-25rust-lang/rust#51025: improve test robustness so that they work under NLL too.Felix S. Klock II-17/+17
2018-04-18Trivial updates to `.nll.stderr` files post-rebase, reflecting s/-Znll/nll/ ↵Felix S. Klock II-37/+37
in messages.
2018-04-11Checkpoint the current status of NLL on `ui` tests via compare-mode=nll.Felix S. Klock II-0/+682
2018-03-14update testsGuillaume Gomez-38/+38
2018-03-09tidy: Add a check for stray `.stderr` and `.stdout` files in UI test directoriesVadim Petrochenkov-19/+0
2018-02-26Update UI testsVadim Petrochenkov-5/+5
2018-02-26Update UI testsVadim Petrochenkov-89/+89
2018-02-25Update ui testsGuillaume Gomez-0/+39
2018-02-17fix more typos found by codespell.Matthias Krüger-1/+1
2017-11-27Don't show first assignment in loopsMatthew Jasper-0/+118
Matches current ast-borrowck behavior.
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-77/+78
2017-11-12Improve SubSupConflict case with one named, one anonymous lifetime parameter ↵Cengiz Can-91/+48
#42701
2017-11-06review commentsEsteban Küber-2/+2
2017-11-05Handle anon lifetime arg being returned with named lifetime return typeEsteban Küber-3/+44
When there's a lifetime mismatch between an argument with an anonymous lifetime being returned in a method with a return type that has a named lifetime, show specialized lifetime error pointing at argument with a hint to give it an explicit lifetime matching the return type. ``` error[E0621]: explicit lifetime required in the type of `other` --> file2.rs:21:21 | 17 | fn bar(&self, other: Foo) -> Foo<'a> { | ----- consider changing the type of `other` to `Foo<'a>` ... 21 | other | ^^^^^ lifetime `'a` required ``` Follow up to #44124 and #42669.
2017-09-26fix test referenceNiko Matsakis-1/+1
2017-09-26remove random newlines from error messages, fix compile-fail testNiko Matsakis-10/+5
That kind of formatting seems like the job of other code.
2017-09-26use present tense consistently and update referencesNiko Matsakis-4/+4
2017-09-26modify message for return time having multiple lifetimesgaurikholkar-32/+25
2017-09-26merge fixes, addressing CR commentsgaurikholkar-76/+24
2017-09-14add ui tests for EBRgaurikholkar-0/+32
2017-09-14adding ui testsgaurikholkar-0/+28
2017-09-13fix ui testsgaurikholkar-2/+2
2017-09-12Adding changes for trait objectsgaurikholkar-0/+24
2017-09-12add ui test for fn items, tidy fixesgaurikholkar-4/+24
2017-09-12Adding E0623 for structsgaurikholkar-0/+80
2017-09-09adding E0623 for LateBound regionsgaurikholkar-0/+57
2017-08-23minor fixgaurikholkar-1/+1
2017-08-23code review fixesgaurikholkar-66/+6
2017-08-17Adding E0623 for structsgaurikholkar-53/+366
2017-07-29changing E0623 error messagegaurikholkar-10/+10
2017-07-28Adding E0623, to detect missing lifetimes when both regions are anonymousgaurikholkar-0/+108
2017-07-02report the total number of errors on compilation failureAriel Ben-Yehuda-8/+8
Prior to this PR, when we aborted because a "critical pass" failed, we displayed the number of errors from that critical pass. While that's the number of errors that caused compilation to abort in *that place*, that's not what people really want to know. Instead, always report the total number of errors, and don't bother to track the number of errors from the last pass that failed. This changes the compiler driver API to handle errors more smoothly, and therefore is a compiler-api-[breaking-change]. Fixes #42793.
2017-07-02Revert "Change error count messages"Ariel Ben-Yehuda-7/+7
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-06-29adding compile-fail testgaurikholkar-53/+0
2017-06-29Changing the error code to E0621gaurikholkar-7/+7
2017-06-29Adding changes to track anonymous region in selfgaurikholkar-3/+53
2017-06-29track anonymous regions in return types, fix tidy errorsgaurikholkar-1/+52
2017-06-29Enabling E0611 for inherent functionsgaurikholkar-0/+63