tcx.lift(&self.inputs_and_output).map(|x| {
ty::FnSig {
inputs_and_output: x,
- variadic: self.variadic,
+ c_variadic: self.c_variadic,
unsafety: self.unsafety,
abi: self.abi,
}
match *self {
ConstValue::Scalar(x) => Some(ConstValue::Scalar(x)),
ConstValue::Slice(x, y) => Some(ConstValue::Slice(x, y)),
- ConstValue::ByRef(x, alloc, z) => Some(ConstValue::ByRef(
- x, alloc.lift_to_tcx(tcx)?, z,
+ ConstValue::ByRef(ptr, alloc) => Some(ConstValue::ByRef(
+ ptr, alloc.lift_to_tcx(tcx)?,
)),
}
}
BraceStructTypeFoldableImpl! {
impl<'tcx> TypeFoldable<'tcx> for ty::FnSig<'tcx> {
- inputs_and_output, variadic, unsafety, abi
+ inputs_and_output, c_variadic, unsafety, abi
}
}