about summary refs log tree commit diff
path: root/src/test/ui/impl-header-lifetime-elision
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-286/+0
2022-07-26Check that we do not ICE when anonymous lifetimes appear in AnonConst.Camille GILLOT-0/+24
Fixes #98932.
2022-07-25Report elision failures on the AST.Camille GILLOT-17/+7
2022-06-21Always create parameters for functions-like types.Camille GILLOT-1/+5
2022-06-03Fully stabilize NLLJack Huey-24/+2
2022-05-22Use revisions for NLL in various directoriesJack Huey-4/+10
2022-04-17Lint elided lifetimes in path on the AST.Camille GILLOT-2/+10
2022-04-17Bless tests.Camille GILLOT-5/+4
2022-02-28Update ui test with the add of E0726 explanationGuillaume Gomez-0/+2
2021-12-10Tweak wordingEsteban Kuber-1/+1
2021-10-05Note specific regions involved in 'borrowed data escapes' errorAaron Hill-2/+7
Fixes #67007 Currently, a 'borrowed data escapes' error does not mention the specific lifetime involved (except indirectly through a suggestion about adding a lifetime bound). We now explain the specific lifetime relationship that failed to hold, which improves otherwise vague error messages.
2021-10-03Don't suggest replacing region with 'static in NLLAaron Hill-2/+0
Fixes #73159 This is similar to #69350 - if the user didn't initially write out a 'static lifetime, adding 'static in response to a lifetime error is usually the wrong thing to do.
2021-08-18Use more accurate spans when proposing adding lifetime to itemEsteban Kuber-1/+1
2021-08-11Modify structured suggestion outputEsteban Küber-2/+2
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-07-19Better errors when we don't have implicit statics in trait objectsjackh726-0/+4
2021-02-02Update ui tests (nll)Jesus Rubio-0/+1
2020-07-22Further tweak wording of E0759 and introduce E0767Esteban Küber-2/+2
2020-07-22Detect when `'static` obligation might come from an `impl`Esteban Küber-19/+6
Address #71341.
2020-05-27Fix spacing of expected/found notes without a labelEsteban Küber-4/+4
2020-02-05review commentsEsteban Küber-2/+2
2020-02-05Suggest `'r` instead of `'lifetime`Esteban Küber-4/+4
2020-01-19review commentsEsteban Küber-2/+2
2020-01-19When encountering an expected named lifetime and none are present, suggest ↵Esteban Küber-2/+12
adding one
2019-12-03Include a span in more `expected...found` notesAaron Hill-6/+14
In most places, we use a span when emitting `expected...found` errors. However, there were a couple of places where we didn't use any span, resulting in hard-to-interpret error messages. This commit attaches the relevant span to these notes, and additionally switches over to using `note_expected_found` instead of manually formatting the message
2019-10-27update testsMark Mansi-0/+2
2019-10-11Print lifetimes with backticksYuki Okushi-1/+1
2019-10-07update ui testsGuillaume Gomez-0/+1
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-0/+10
2019-05-01Disallow non-explicit elided lifetimes in async fnTaylor Cramer-8/+6
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+0
2019-03-11Update testsVadim Petrochenkov-1/+1
2018-12-25Remove licensesMark Rousskov-95/+7
2018-10-19Move an underscore-lifetime error test to an IHLE success testScott McMurray-0/+19
2018-10-19Stabilize impl_header_lifetime_elision in 2015Scott McMurray-23/+7
It's already stable in 2018; this finishes the stabilization.
2018-10-17Update output for borrowck=migrate compare mode.David Wood-10/+0
This commit updates the test output for the updated NLL compare mode that uses `-Z borrowck=migrate` rather than `-Z borrowck=mir`. The previous commit changes `compiletest` and this commit only updates `.nll.stderr` files.
2018-09-22Allow both explicit and elided lifetimes in the same impl headerScott McMurray-0/+25
(While still prohibiting explicit and in-band in the same header.)
2018-09-01Update testsBasile Desloges-6/+0
2018-08-03Extract impl_header_lifetime_elision out of in_band_lifetimesScott McMurray-0/+328