]> git.lizzy.rs Git - rust.git/commit
auto merge of #18371 : nikomatsakis/rust/issue-18262, r=pcwalton
authorbors <bors@rust-lang.org>
Sat, 1 Nov 2014 01:41:45 +0000 (01:41 +0000)
committerbors <bors@rust-lang.org>
Sat, 1 Nov 2014 01:41:45 +0000 (01:41 +0000)
commit1442235d3feab4c5ca3f55e2b3345583f640a17e
tree1883c6ac50cc96daf4bd3efca9c29d355f91c55d
parent88b6e93d35c34e143ba060a617e71c8af10fa15e
parent9a5e7ba4c7eefb2f40389966c562fbadcc778625
auto merge of #18371 : nikomatsakis/rust/issue-18262, r=pcwalton

Teach variance checker about the lifetime bounds that appear in trait object types.

[breaking-change] This patch fixes a hole in the type system which resulted in lifetime parameters that were only used in trait objects not being checked. It's hard to characterize precisely the changes that might be needed to fix target code.

cc #18262 (this fixes the test case by @jakub- but I am not sure if this is the same issue that @alexcrichton was reporting)

r? @pnkfelix

Fixes #18205