Skip to content

Commit e434f66

Browse files
committed
format args decompiler: expand closures to proper types
1 parent 8827f7a commit e434f66

File tree

2 files changed

+627
-596
lines changed

2 files changed

+627
-596
lines changed

crates/rustc_codegen_spirv/src/builder/builder_methods.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use smallvec::SmallVec;
3333
use std::iter::{self, empty};
3434
use std::ops::{BitAnd, BitOr, BitXor, Not, RangeInclusive};
3535

36+
use crate::builder::format_args_decompiler::{CodegenPanic, DecodedFormatArgs};
3637
use tracing::{Level, instrument, span};
3738
use tracing::{trace, warn};
3839

@@ -3341,7 +3342,8 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
33413342
}
33423343

33433344
if is_panic_entry_point {
3344-
return self.codegen_panic_entry_point(result_type, args);
3345+
return DecodedFormatArgs::try_decode_and_remove_format_args(self, args)
3346+
.codegen_panic(self, result_type);
33453347
}
33463348
if buffer_load_intrinsic {
33473349
return self.codegen_buffer_load_intrinsic(fn_abi, result_type, args);

0 commit comments

Comments
 (0)