We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c170c94 commit f41d9b0Copy full SHA for f41d9b0
src/value_and_place.rs
@@ -85,6 +85,7 @@ impl<'tcx> CValue<'tcx> {
85
}
86
87
pub(crate) fn by_val(value: Value, layout: TyAndLayout<'tcx>) -> CValue<'tcx> {
88
+ // FIXME assert type of value matches the layout
89
CValue(CValueInner::ByVal(value), layout)
90
91
@@ -93,6 +94,7 @@ impl<'tcx> CValue<'tcx> {
93
94
extra: Value,
95
layout: TyAndLayout<'tcx>,
96
) -> CValue<'tcx> {
97
+ // FIXME assert type of value and extra matches the layout
98
CValue(CValueInner::ByValPair(value, extra), layout)
99
100
0 commit comments