Keep track of Enum's with destructors
This commit is contained in:
parent
a22539b083
commit
c75dd78ccb
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue