Keep track of Enum's with destructors

This commit is contained in:
Flavio Percoco 2014-02-15 22:30:34 +01:00
parent a22539b083
commit c75dd78ccb

View File

@ -725,6 +725,7 @@ impl CoherenceChecker {
let self_type = self.get_self_type_for_implementation(*impl_info);
match ty::get(self_type.ty).sty {
ty::ty_enum(type_def_id, _) |
ty::ty_struct(type_def_id, _) => {
let mut destructor_for_type = tcx.destructor_for_type
.borrow_mut();