]> git.lizzy.rs Git - rust.git/commit
handle all type variants correctly in dropck
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>
Thu, 23 Jul 2015 22:38:42 +0000 (01:38 +0300)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Fri, 24 Jul 2015 20:46:17 +0000 (23:46 +0300)
commitbfbc7bc45d66ba7be8ab2ba60316cb1e303f4544
treec04fad182d83a901e71e045df0ccd7c03efc5182
parent5e6b534362de257603f8fc318eba78deb83206e3
handle all type variants correctly in dropck

This fixes a few soundness bugs in dropck, so to anyone who relied on them,
this is a
[breaking-change]

Fixes #24086.
Fixes #25389.
Fixes #25598.
Fixes #25750.
Fixes #26641.
Fixes #26657.
Fixes #27240.
Fixes #27241.
src/librustc_typeck/check/dropck.rs
src/librustc_typeck/check/regionck.rs
src/test/compile-fail/dropck_misc_variants.rs [new file with mode: 0644]
src/test/run-pass/issue-24086.rs [new file with mode: 0644]
src/test/run-pass/issue-26641.rs [new file with mode: 0644]
src/test/run-pass/issue-27240.rs [new file with mode: 0644]