about summary refs log tree commit diff
path: root/src/test/ui/lifetimes
AgeCommit message (Collapse)AuthorLines
2019-04-25Rollup merge of #60160 - xldenis:fix-overlapping-zero-width-annotation, ↵Mazdak Farrokhzad-3/+1
r=estebank Fix #58270, fix off-by-one error in error diagnostics. This fixes #58270 by checking if two diagnostics overlap completely when we're calculating the line offset for each message.
2019-04-22Fix #58270, fix off-by-one error in error diagnostics.Xavier Denis-3/+1
2019-04-22Remove double trailing newlinesvarkor-3/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-26/+9
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-26/+1
2019-03-11Update NLL testsVadim Petrochenkov-1/+1
2019-03-11Update testsVadim Petrochenkov-64/+64
2018-12-25Remove licensesMark Rousskov-496/+75
2018-12-04Update testsOliver Scherer-0/+1
2018-11-07remove `#[rustc_error]` from ui/ tests that remain compile-fail tests.Felix S. Klock II-2/+2
2018-10-22[review comments] modify test and clean up codeOliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer-7/+4
Co-Authored-By: estebank <esteban@kuber.com.ar>
2018-10-22review commentsEsteban Küber-20/+5
2018-10-22Suggest appropriate syntax on missing lifetime specifier in return typeEsteban Küber-8/+45
Suggest using `'static` when a lifetime is missing in the return type with a structured suggestion instead of a note.
2018-10-17Update output for borrowck=migrate compare mode.David Wood-399/+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-10-15Deduplicate testsShotaro Yamada-45/+0
* `ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-4` and `ex3-both-anon-regions-both-are-structs-3` * `ui/lint/lint-group-style` and `lint-group-nonstandard-style`
2018-09-25Update E0714 to E0716 in tests outputMikhail Modin-2/+2
2018-09-25add "temporary value dropped while borrowed" errorMikhail Modin-4/+4
Issue #54131
2018-09-19Update ui testsMatthew Jasper-8/+8
2018-09-16Auto merge of #54157 - euclio:structured-suggestion, r=estebankbors-5/+5
use structured suggestion for "missing mut" label Fixes #54133 for both NLL and non-NLL. r? @estebank I'm not super happy with the existing wording here, since it's now a suggestion. I wonder if the message would work better as something like "help: make binding mutable: `mut foo`"? Also, are the `HELP` and `SUGGESTION` comments necessary?
2018-09-14Auto merge of #54088 - matthewjasper:use-reason-in-dlle-errors, r=pnkfelixbors-0/+1
[NLL] Suggest let binding Closes #49821 Also adds an alternative to `explain_why_borrow_contains_point` that allows changing error messages based on the reason that will be given. This will also be useful for #51026, #51169 and maybe further changes to does not live long enough messages.
2018-09-12use structured suggestion for "missing mut" labelAndy Russell-5/+5
Fixes #54133.
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-16/+2
Co-authored-by: nikomatsakis
2018-09-09Suggest a let binding to extend temporary lifetimes with NLLMatthew Jasper-0/+1
2018-09-01Update testsBasile Desloges-314/+0
2018-08-27remove `let x = baz` which was obscuring the real errorNiko Matsakis-8/+8
2018-08-19Fix typos found by codespell.Matthias Krüger-2/+2
2018-08-14Update testsMatthew Jasper-33/+30
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+2277
2018-07-23Match errors using the callsite of macro expansionsFederico Poli-1/+3
2018-05-25rust-lang/rust#51025: improve test robustness so that they work under NLL too.Felix S. Klock II-14/+24
2018-04-11Checkpoint the current status of NLL on `ui` tests via compare-mode=nll.Felix S. Klock II-0/+10
2018-04-11Workaround rust-lang/rust#49855 by forcing rustc_error in any mode, ↵Felix S. Klock II-2/+2
including NLL. NOTE: I was careful to make each change in a manner that preserves the existing diagnostic output (usually by ensuring that no lines were added or removed). This means that the resulting source files are not as nice to read as they were at the start. But we will have to review these cases by hand anyway as follow-up work, so cleanup could reasonably happen then (or not at all).
2018-03-14update testsGuillaume Gomez-3/+3
2018-02-26Update UI testsVadim Petrochenkov-32/+32
2018-02-25Update ui testsGuillaume Gomez-0/+3
2017-12-16Auto merge of #46722 - arielb1:single-self, r=eddybbors-22/+49
fix broken assertion in type_param Nested generics (aka method generics) in trait methods don't have an *additional* Self parameter in their own type parameter list (they have a Self parameter in the parent generics), so don't try to check we're correctly adjusting for it. Fixes #46568. r? @eddyb
2017-12-14Point at var in short lived borrowsEsteban Küber-5/+5
2017-12-13fix broken assertion in type_paramAriel Ben-Yehuda-22/+49
Nested generics (aka method generics) in trait methods don't have an *additional* Self parameter in their own type parameter list (they have a Self parameter in the parent generics), so don't try to check we're correctly adjusting for it. Fixes #46568.
2017-11-26mention nightly in -Z external-macro-backtrace noteAlex Burka-1/+1
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-29/+39
2017-11-20address review commentsAlex Burka-1/+1
2017-11-19use -Z flag instead of env varAlex Burka-1/+1
2017-11-19update UI testsAlex Burka-1/+1
2017-10-02fix handling of `Self`Ariel Ben-Yehuda-15/+46
2017-10-01handle nested generics in Generics::type_param/region_paramAriel Ben-Yehuda-1/+44
Fixes #44952.
2017-09-24Point at parameter type on E0301Esteban Küber-0/+61
On "the parameter type `T` may not live long enough" error, point to the parameter type suggesting lifetime bindings: ``` error[E0310]: the parameter type `T` may not live long enough --> $DIR/lifetime-doesnt-live-long-enough.rs:28:5 | 27 | struct Foo<T> { | - help: consider adding an explicit lifetime bound `T: 'static`... 28 | foo: &'static T | ^^^^^^^^^^^^^^^ | note: ...so that the reference type `&'static T` does not outlive the data it points at --> $DIR/lifetime-doesnt-live-long-enough.rs:28:5 | 28 | foo: &'static T | ^^^^^^^^^^^^^^^ ```
2017-08-16Stabilize rvalue promotion to 'static.Eduard-Mihai Burtescu-4/+5
2017-07-02Revert "Change error count messages"Ariel Ben-Yehuda-1/+1
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-05-27Add new error codes and update testsGuillaume Gomez-1/+1
2017-05-24Change error count messagesMichael Kohl-1/+1
See #33525 for details.