Allow codegen to unsize dyn* to dyn
cg_clif counterpart to rust-lang/rust#106532
This commit is contained in:
parent
b08762493c
commit
9e6dfba383
2 changed files with 1 additions and 4 deletions
|
|
@ -28,9 +28,7 @@ pub(crate) fn unsized_info<'tcx>(
|
|||
(
|
||||
&ty::Dynamic(ref data_a, _, src_dyn_kind),
|
||||
&ty::Dynamic(ref data_b, _, target_dyn_kind),
|
||||
) => {
|
||||
assert_eq!(src_dyn_kind, target_dyn_kind);
|
||||
|
||||
) if src_dyn_kind == target_dyn_kind => {
|
||||
let old_info =
|
||||
old_info.expect("unsized_info: missing old info for trait upcasting coercion");
|
||||
if data_a.principal_def_id() == data_b.principal_def_id() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue