Only generate OpaqueCast for opaque types

This commit is contained in:
Oli Scherer 2022-07-27 11:58:34 +00:00
parent 40e2de8c41
commit dab1074b91
6 changed files with 47 additions and 23 deletions

View file

@ -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),
}
}