about summary refs log tree commit diff
path: root/src/test/ui/object-lifetime
AgeCommit message (Collapse)AuthorLines
2019-10-11Print lifetimes with backticksYuki Okushi-7/+7
2019-10-07update ui testsGuillaume Gomez-0/+1
2019-08-19use static as object-lifetime default for type XX in `Foo<Item=XX>`Niko Matsakis-0/+132
Currently the default is "inherited" from context, so e.g. `&impl Foo<Item = dyn Bar>` would default to `&'x impl Foo<Item = dyn Bar + 'x>`, but this triggers an ICE and is not very consistent. This patch doesn't implement what I expect would be the correct semantics, because those are likely too complex. Instead, it handles what I'd expect to be the common case -- where the trait has no lifetime parameters.
2019-06-30Make sure `#[rustc_doc_only_macro]` and other rustc attributes are registeredVadim Petrochenkov-24/+24
2019-06-03Update tests for changes to cannot move errorsMatthew Jasper-2/+2
2019-05-29Update ui test suite to use dynmemoryruins-53/+53
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-0/+82
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-4/+1
2019-03-11Update testsVadim Petrochenkov-13/+13
2018-12-25Remove licensesMark Rousskov-106/+36
2018-10-17Update output for borrowck=migrate compare mode.David Wood-82/+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-26apply `process_registered_region_obligations` at the end of regionckNiko Matsakis-1/+1
We used to apply it repeatedly as we went, relying on the current value of the `region_bound_pairs_accum` vector. But now we save those values into a map, so we can just process all the registered region obligations at the end.
2018-09-19Update ui testsMatthew Jasper-6/+6
2018-09-01Update testsBasile Desloges-42/+0
2018-08-27Also use smaller spans for unsize adjustmentsMatthew Jasper-11/+6
2018-08-25Use smaller span for adjustments on block expressionsMatthew Jasper-13/+8
2018-08-18Auto merge of #53175 - matthewjasper:more-return-stuff, r=nikomatsakisbors-2/+2
[NLL] Returns are interesting for free regions Based on #53088 - creating now to get feedback. Closes #51175 * Make assigning to the return type interesting. * Use "returning this value" instead of "return" in error messages. * Prefer one of the explanations that we have a name for to a generic interesting cause in some cases. * Treat causes that involve the destination of a call like assignments.
2018-08-17Fix undesirable falloutVadim Petrochenkov-24/+24
compile-fail-fulldeps/proc-macro/proc-macro-attributes.rs - resolution change for derive helper attributes with the same name as derive itself run-pass/macro-comma-support.rs - indeterminate resolutions for macros in expression positions ui/issues/issue-49074.rs - diagnostics regression, not enough recovery to report the second error ui/object-lifetime/object-lifetime-default.stderr - unstable diagnostics?
2018-08-14Update former compile-fail testsMatthew Jasper-2/+2
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+675