about summary refs log tree commit diff
path: root/src/libstd/array.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-17 20:38:18 +0000
committerbors <bors@rust-lang.org>2015-04-17 20:38:18 +0000
commitf305579e490a9fa046b1b7a14e62daf643e41865 (patch)
tree4db877cb45e780d62f3cfb69374d6dc3ca8f9a92 /src/libstd/array.rs
parent3b2530c74832d8434ae7d87d01aa44936c0b0f84 (diff)
parent5368070228a90b38bc3c36841ca5d882c9afc301 (diff)
downloadrust-f305579e490a9fa046b1b7a14e62daf643e41865.tar.gz
rust-f305579e490a9fa046b1b7a14e62daf643e41865.zip
Auto merge of #24461 - nikomatsakis:issue-22077-unused-lifetimes, r=aturon
This makes it illegal to have unconstrained lifetimes that appear in an associated type definition. Arguably, we should prohibit all unconstrained lifetimes -- but it would break various macros. It'd be good to evaluate how large a break change it would be. But this seems like the minimal change we need to do to establish soundness, so we should land it regardless. Another variant would be to prohibit all lifetimes that appear in any impl item, not just associated types. I don't think that's necessary for soundness -- associated types are different because they can be projected -- but it would feel a bit more consistent and "obviously" safe. I'll experiment with that in the meantime.

r? @aturon 

Fixes #22077.
Diffstat (limited to 'src/libstd/array.rs')
0 files changed, 0 insertions, 0 deletions