Only generate OpaqueCast
for opaque types
This commit is contained in:
parent
40e2de8c41
commit
dab1074b91
6 changed files with 47 additions and 23 deletions
|
@ -893,7 +893,7 @@ where
|
|||
}
|
||||
ty::Slice(ety) => self.open_drop_for_array(*ety, None),
|
||||
|
||||
_ => bug!("open drop from non-ADT `{:?}`", ty),
|
||||
_ => span_bug!(self.source_info.span, "open drop from non-ADT `{:?}`", ty),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue