Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/value_and_place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ impl<'tcx> CValue<'tcx> {
let (field_ptr, field_layout) = codegen_field(fx, ptr, None, layout, field);
CValue::by_ref(field_ptr, field_layout)
}
CValueInner::ByRef(_, Some(_)) => todo!(),
CValueInner::ByRef(_, Some(_)) => {
bug!("value_field for unsized by-ref value not supported")
}
Comment thread
bjorn3 marked this conversation as resolved.
}
}

Expand Down Expand Up @@ -655,7 +657,13 @@ impl<'tcx> CPlace<'tcx> {
flags,
);
}
CValueInner::ByRef(_, Some(_)) => todo!(),
CValueInner::ByRef(_from_ptr, Some(_extra)) => {
bug!(
"write_cvalue for unsized by-ref value not allowed: dst={:?} src={:?}",
dst_layout.ty,
from.layout().ty
);
}
}
}
}
Expand Down
Loading