Skip to content

Commit c75dd78

Browse files
committed
Keep track of Enum's with destructors
1 parent a22539b commit c75dd78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/middle/typeck/coherence.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ impl CoherenceChecker {
725725

726726
let self_type = self.get_self_type_for_implementation(*impl_info);
727727
match ty::get(self_type.ty).sty {
728+
ty::ty_enum(type_def_id, _) |
728729
ty::ty_struct(type_def_id, _) => {
729730
let mut destructor_for_type = tcx.destructor_for_type
730731
.borrow_mut();

0 commit comments

Comments
 (0)