]> git.lizzy.rs Git - rust.git/commitdiff
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)
**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.


Trivial merge