Skip to content

Commit fa07e53

Browse files
committed
format args decompiler: expand closures to proper types
1 parent d5c0bb3 commit fa07e53

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

@@ -3338,7 +3339,8 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
33383339
}
33393340

33403341
if is_panic_entry_point {
3341-
return self.codegen_panic_entry_point(result_type, args);
3342+
return DecodedFormatArgs::try_decode_and_remove_format_args(self, args)
3343+
.codegen_panic(self, result_type);
33423344
}
33433345
if buffer_load_intrinsic {
33443346
return self.codegen_buffer_load_intrinsic(fn_abi, result_type, args);

0 commit comments

Comments
 (0)