We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1afce7c commit c8c8742Copy full SHA for c8c8742
src/base.rs
@@ -228,6 +228,18 @@ pub(crate) fn compile_fn(
228
name = codegened_func.symbol_name
229
));
230
}
231
+ Err(ModuleError::Compilation(CodegenError::Verifier(err))) => {
232
+ let early_dcx = rustc_session::EarlyDiagCtxt::new(
233
+ rustc_session::config::ErrorOutputType::default(),
234
+ );
235
+ let _ = early_dcx.early_err(format!("{:?}", err));
236
+ let pretty_error = cranelift_codegen::print_errors::pretty_verifier_error(
237
+ &context.func,
238
+ Some(Box::new(&clif_comments)),
239
+ err,
240
241
+ early_dcx.early_fatal(format!("cranelift verify error:\n{}", pretty_error));
242
+ }
243
Err(err) => {
244
panic!("Error while defining {name}: {err:?}", name = codegened_func.symbol_name);
245
0 commit comments