Niko Matsakis
832199ee76
use static as object-lifetime default for type XX in Foo<Item=XX>
...
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-08-19 13:50:44 -04:00
..
2019-07-27 18:56:16 +03:00
2019-08-02 02:44:35 +01:00
2019-08-10 13:16:06 +03:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-07-27 18:56:17 +03:00
2019-07-30 10:43:32 +02:00
2019-07-30 10:43:32 +02:00
2019-08-16 10:54:20 +01:00
2019-08-16 10:54:20 +01:00
2019-08-16 10:54:20 +01:00
2019-07-30 10:43:32 +02:00
2019-07-27 18:56:16 +03:00
2019-07-03 06:30:28 +09:00
2019-07-03 06:30:28 +09:00
2019-08-19 13:50:42 -04:00
2019-08-19 13:50:42 -04:00
2019-08-19 13:50:44 -04:00
2019-08-19 13:50:42 -04:00
2019-07-27 18:56:17 +03:00
2019-07-27 18:56:16 +03:00
2019-07-27 18:56:16 +03:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-07-27 18:56:16 +03:00
2019-07-03 06:30:28 +09:00
2019-07-27 18:56:16 +03:00
2019-07-18 07:30:51 +01:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-07-27 18:56:16 +03:00
2019-07-27 18:56:16 +03:00
2019-07-27 18:56:16 +03:00
2019-07-27 18:56:16 +03:00
2019-07-27 18:56:16 +03:00
2019-07-27 18:56:16 +03:00
2019-07-18 13:42:45 +03:00
2019-07-18 13:42:45 +03:00
2019-08-02 02:44:36 +01:00
2019-08-02 02:44:36 +01:00
2019-07-27 18:56:16 +03:00
2019-07-27 18:56:16 +03:00