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 ce1b06e commit 5fcfb4eCopy full SHA for 5fcfb4e
1 file changed
compiler/rustc_const_eval/src/const_eval/type_info.rs
@@ -465,6 +465,15 @@ impl<'tcx> InterpCx<'tcx, CompileTimeMachine<'tcx>> {
465
sym::variadic => {
466
self.write_scalar(Scalar::from_bool(fn_sig_kind.c_variadic()), &field_place)?;
467
}
468
+ sym::splat => {
469
+ self.write_scalar(
470
+ // Use the same encoding as FnSigKind.splatted
471
+ Scalar::from_u16(
472
+ fn_sig_kind.splatted().unwrap_or(FnSigKind::NO_SPLATTED_ARG_INDEX),
473
+ ),
474
+ &field_place,
475
+ )?;
476
+ }
477
other => span_bug!(self.tcx.def_span(field.did), "unimplemented field {other}"),
478
479
0 commit comments