rust/src/test/ui/object-lifetime
Aaron Hill 31cdd8cdd2
Propagate coercion cause into try_coerce
Currently, `coerce_inner` discards its `ObligationCause`
when calling `try_coerce`. This interfers with other
diagnostc improvements I'm working on, since we will lose
the original span by the time the actual coercion occurs.

Additionally, we now use the span of the trailing expression
(rather than the span of the entire function) when performing
a coercion in `check_return_expr`. This currently has no visible
effect on any of the unit tests, but will unblock future
diagnostic improvements.
2021-09-16 16:53:40 -05:00
..
object-lifetime-default-ambiguous.rs
object-lifetime-default-ambiguous.stderr add long error explanation for E0228 2020-05-12 17:09:09 -07:00
object-lifetime-default-dyn-binding-nonstatic1.rs use static as object-lifetime default for type XX in Foo<Item=XX> 2019-08-19 13:50:44 -04:00
object-lifetime-default-dyn-binding-nonstatic1.stderr add long error explanation for E0228 2020-05-12 17:09:09 -07:00
object-lifetime-default-dyn-binding-nonstatic2.rs use static as object-lifetime default for type XX in Foo<Item=XX> 2019-08-19 13:50:44 -04:00
object-lifetime-default-dyn-binding-nonstatic2.stderr add long error explanation for E0228 2020-05-12 17:09:09 -07:00
object-lifetime-default-dyn-binding-nonstatic3.rs use static as object-lifetime default for type XX in Foo<Item=XX> 2019-08-19 13:50:44 -04:00
object-lifetime-default-dyn-binding-nonstatic3.stderr add long error explanation for E0228 2020-05-12 17:09:09 -07:00
object-lifetime-default-dyn-binding-static.rs use static as object-lifetime default for type XX in Foo<Item=XX> 2019-08-19 13:50:44 -04:00
object-lifetime-default-elision.nll.stderr update tests 2019-10-27 09:39:14 -05:00
object-lifetime-default-elision.rs
object-lifetime-default-elision.stderr Propagate coercion cause into try_coerce 2021-09-16 16:53:40 -05:00
object-lifetime-default-from-box-error.nll.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
object-lifetime-default-from-box-error.rs Further tweak wording of E0759 and introduce E0767 2020-07-22 12:25:54 -07:00
object-lifetime-default-from-box-error.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
object-lifetime-default-from-rptr-box-error.nll.stderr update tests 2019-10-27 09:39:14 -05:00
object-lifetime-default-from-rptr-box-error.rs
object-lifetime-default-from-rptr-box-error.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
object-lifetime-default-from-rptr-struct-error.nll.stderr update tests 2019-10-27 09:39:14 -05:00
object-lifetime-default-from-rptr-struct-error.rs
object-lifetime-default-from-rptr-struct-error.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
object-lifetime-default-mybox.nll.stderr Update ui tests (nll) 2021-02-02 18:57:34 +01:00
object-lifetime-default-mybox.rs
object-lifetime-default-mybox.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
object-lifetime-default.rs
object-lifetime-default.stderr Make sure #[rustc_doc_only_macro] and other rustc attributes are registered 2019-06-30 12:47:33 +03:00