about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2019-08-12 10:41:05 -0400
committerNiko Matsakis <niko@alum.mit.edu>2019-08-19 13:50:44 -0400
commit832199ee767004091d083affb5e641502f6d39bc (patch)
tree5438aca5137e1ab3f97ac88731ff4109ca019ad5 /src/libsyntax/parse
parentaf86fb1959b520ae0256272899df5c43b11df2a7 (diff)
downloadrust-832199ee767004091d083affb5e641502f6d39bc.tar.gz
rust-832199ee767004091d083affb5e641502f6d39bc.zip
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.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions