]> git.lizzy.rs Git - rust.git/commit
auto merge of #6385 : huonw/rust/rustc-dtor-struct-match, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 11 May 2013 18:49:50 +0000 (11:49 -0700)
committerbors <bors@rust-lang.org>
Sat, 11 May 2013 18:49:50 +0000 (11:49 -0700)
commite478cedb0ab0bdb7e00a3a60a6946915af0fdd5a
tree33adb76318393876fa8c9f78964873807b38deb7
parent96de2b0273e828edf45d4b3e6c4dc5c3cf665fd5
parent912a352712b1b97009a11e3c3f7c4ba7360d9eaf
auto merge of #6385 : huonw/rust/rustc-dtor-struct-match, r=nikomatsakis

**Caveat**: With the current commit, this check only works for `match`s, the checks (incorrectly) do not run for patterns in `let`s, and invalid/unsafe code compiles.

I don't know how to fix this, I experimented with some things to try to make let patterns and match patterns run on the same code (since this would presumably fix many of the other unsoundness issues of let-patterns, e.g. #6225), but I don't understand enough of the code. (I think I heard someone talking about a fix for `let` being in progress?)

Fixes #6344 and #6341.