MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / print_error

Function print_error

cranelift/codegen/src/print_errors.rs:208–211  ·  view source on GitHub ↗

Prints: ; error: [ERROR BODY]

(w: &mut dyn Write, err: VerifierError)

Source from the content-addressed store, hash-verified

206/// Prints:
207/// ; error: [ERROR BODY]
208fn print_error(w: &mut dyn Write, err: VerifierError) -> fmt::Result {
209 writeln!(w, "; error: {}", err.to_string())?;
210 Ok(())
211}
212
213/// Pretty-print a Cranelift error.
214pub fn pretty_error(func: &ir::Function, err: CodegenError) -> String {

Callers 3

pretty_instruction_errorFunction · 0.85
pretty_preamble_errorFunction · 0.85

Calls 1

OkFunction · 0.85

Tested by

no test coverage detected