| /wasmtime-44.0.1/crates/wasi-nn/src/backend/ |
| H A D | onnx.rs | 156 return Err(BackendError::BackendAccess(wasmtime::format_err!( in find() 293 Err(BackendError::BackendAccess(wasmtime::format_err!( in get_output() 303 BackendError::BackendAccess(wasmtime::format_err!("{e}")) in from() 346 return Err(wasmtime::format_err!( in matches() 355 return Err(wasmtime::format_err!( in matches() 364 return Err(wasmtime::format_err!( in matches() 381 _ => Err(BackendError::BackendAccess(wasmtime::format_err!( in convert_value_type() 389 wasmtime::format_err!("unable to convert dimension to u32: {d}").into() in convert_i64() 402 _ => Err(BackendError::BackendAccess(wasmtime::format_err!( in try_from() 420 BackendError::BackendAccess(wasmtime::format_err!( [all …]
|
| /wasmtime-44.0.1/examples/min-platform/src/ |
| H A D | main.rs | 13 use wasmtime::{Config, Engine, bail, error::Context as _, format_err}; in main() 19 .ok_or_else(|| format_err!("missing argument 1: triple"))?; in main() 22 .ok_or_else(|| format_err!("missing argument 2: path to libembedding.so"))?; in main() 25 .ok_or_else(|| format_err!("missing argument 3: path to libwasmtime-platform.so"))?; in main() 194 .ok_or_else(|| format_err!("missing argument 4: path to wasi component"))?; in main()
|
| /wasmtime-44.0.1/crates/wiggle/generate/src/ |
| H A D | codegen_settings.rs | 6 use wasmtime_environ::error::{Error, format_err}; 61 Err(format_err!("No witx typename \"{}\" found", ident.to_string())) in new() 67 return Err(format_err!( in new() 77 return Err(format_err!( in new() 83 else { Err(format_err!("No witx typename \"{}\" found", ident.to_string())) } in new()
|
| /wasmtime-44.0.1/tests/all/native_debug/ |
| H A D | simulate.rs | 5 use wasmtime::{Result, format_err}; 18 .map_err(|e| format_err!("unable to build checker: {e:?}"))?; in check_wat() 22 .map_err(|e| format_err!("{e:?}"))?; in check_wat()
|
| H A D | translate.rs | 7 use wasmtime::{Result, format_err}; 19 .map_err(|e| format_err!("unable to build checker: {e:?}"))?; in check_wasm() 23 .map_err(|e| format_err!("{e:?}"))?; in check_wasm()
|
| H A D | gdb.rs | 6 use wasmtime::{Result, bail, format_err}; 43 .map_err(|e| format_err!("unable to build checker: {e:?}"))?; in check_gdb_output() 47 .map_err(|e| format_err!("{e:?}"))?; in check_gdb_output()
|
| /wasmtime-44.0.1/winch/codegen/src/ |
| H A D | regalloc.rs | 4 format_err, 44 .ok_or_else(|| format_err!(CodeGenError::expected_register_to_be_available())) in reg_for_class() 65 .ok_or_else(|| format_err!(CodeGenError::expected_register_to_be_available())) in reg()
|
| /wasmtime-44.0.1/examples/ |
| H A D | mpk.rs | 38 use wasmtime::format_err; 87 let size = ByteSize::from_str(value).map_err(|e| format_err!(e))?; in parse_byte_size() 242 .ok_or(format_err!("parse failure: expected whitespace"))?; in num_bytes_mapped() 244 let start = addresses.next().ok_or(format_err!( in num_bytes_mapped() 248 let end = addresses.next().ok_or(format_err!( in num_bytes_mapped()
|
| H A D | fast_instantiation.rs | 3 use wasmtime::format_err; 88 h.join().map_err(|_| format_err!("thread panicked!"))??; in main()
|
| /wasmtime-44.0.1/crates/wasi-nn/tests/check/ |
| H A D | winml.rs | 1 use wasmtime::{Result, format_err}; 13 Err(e) => Err(format_err!( in is_available()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | error.rs | 2 use wasmtime::{Error, Result, format_err}; 29 Some(Box::new(wasmtime_error_t::from(format_err!(msg_string)))) in wasmtime_error_new() 47 error: format_err!("input was not valid utf-8"), in bad_utf8()
|
| H A D | table.rs | 6 use wasmtime::{Extern, Ref, RootScope, Table, TableType, format_err}; 127 .ok_or_else(|| format_err!("wasmtime_table_new init value is not a reference")) in wasmtime_table_new() 169 .ok_or_else(|| format_err!("wasmtime_table_set value is not a reference")) in wasmtime_table_set() 192 .ok_or_else(|| format_err!("wasmtime_table_grow value is not a reference")) in wasmtime_table_grow()
|
| /wasmtime-44.0.1/crates/wasi/src/p2/host/ |
| H A D | exit.rs | 11 Err(wasmtime::format_err!(I32Exit(status))) in exit() 15 Err(wasmtime::format_err!(I32Exit(status_code.into()))) in exit_with_code()
|
| /wasmtime-44.0.1/crates/unwinder/src/ |
| H A D | exception_table.rs | 260 .map_err(|_| format_err!("Unable to read callsite count prefix"))?; in parse() 264 .map_err(|_| format_err!("Unable to read handler count prefix"))?; in parse() 268 .map_err(|_| format_err!("Unable to read callsites slice"))?; in parse() 271 .map_err(|_| format_err!("Unable to read frame_offsets slice"))?; in parse() 273 .map_err(|_| format_err!("Unable to read ranges slice"))?; in parse() 275 .map_err(|_| format_err!("Unable to read tags slice"))?; in parse() 277 .map_err(|_| format_err!("Unable to read contexts slice"))?; in parse() 279 .map_err(|_| format_err!("Unable to read handlers slice"))?; in parse()
|
| /wasmtime-44.0.1/crates/explorer/src/ |
| H A D | lib.rs | 155 .ok_or_else(|| wasmtime::format_err!("address maps must be enabled in the config"))? in annotate_asm() 187 .map_err(|e| wasmtime::format_err!("{e}"))?, in annotate_asm() 192 .map_err(|e| wasmtime::format_err!("{e}"))?, in annotate_asm() 197 .map_err(|e| wasmtime::format_err!("{e}"))?, in annotate_asm() 202 .map_err(|e| wasmtime::format_err!("{e}"))?, in annotate_asm() 214 .map_err(|e| wasmtime::format_err!("{e}"))?; in annotate_asm()
|
| /wasmtime-44.0.1/winch/codegen/src/isa/aarch64/ |
| H A D | masm.rs | 13 format_err, 1228 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in add128() 1241 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in sub128() 1250 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in mul_wide() 1274 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in atomic_rmw() 1305 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in atomic_cas() 1369 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in v128_not() 1373 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in fence() 1377 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in v128_and() 1381 Err(format_err!(CodeGenError::unimplemented_masm_instruction())) in v128_and_not() [all …]
|
| /wasmtime-44.0.1/crates/wizer/tests/all/ |
| H A D | make_linker.rs | 1 use wasmtime::{Result, error::Context as _, format_err}; 43 Err(format_err!("shouldn't be called")) in run_wasm() 49 wasmtime::format_err!("the test Wasm module does not export a `run` function") in run_wasm()
|
| /wasmtime-44.0.1/crates/core/src/alloc/ |
| H A D | try_collect.rs | 137 let v: Result<TryVec<i32>> = [Ok(1), Err(crate::format_err!("hi"))] in test_vec_result_collect() 142 let v: Result<TryVec<i32>> = [Err(crate::format_err!("hi")), Ok(1)] in test_vec_result_collect() 157 let v: Result<Box<[i32]>> = [Ok(1), Err(crate::format_err!("hi"))] in test_box_result_collect() 162 let v: Result<Box<[i32]>> = [Err(crate::format_err!("hi")), Ok(1)] in test_box_result_collect()
|
| /wasmtime-44.0.1/crates/wasi-nn/src/registry/ |
| H A D | in_memory.rs | 7 use wasmtime::{bail, format_err}; 31 .ok_or(format_err!("no file name in path"))?; in load()
|
| /wasmtime-44.0.1/crates/misc/component-async-tests/tests/scenario/ |
| H A D | round_trip_direct.rs | 6 use wasmtime::{Engine, Result, Store, format_err}; 108 .ok_or_else(|| format_err!("can't find `foo` in instance"))?; in test_round_trip_direct() 111 .ok_or_else(|| format_err!("can't find `foo` in instance"))?; in test_round_trip_direct()
|
| /wasmtime-44.0.1/crates/environ/examples/ |
| H A D | btrees.rs | 4 error::{Context as _, Result, bail, format_err}, 31 .ok_or_else(|| format_err!("must provide first argument: 'std' or 'bforest'"))?; in main()
|
| /wasmtime-44.0.1/crates/wasi/src/cli/ |
| H A D | file.rs | 53 .map_err(|e| StreamError::LastOperationFailed(wasmtime::format_err!(e))) in write() 60 .map_err(|e| StreamError::LastOperationFailed(wasmtime::format_err!(e))) in flush() 131 .map_err(|e| StreamError::LastOperationFailed(wasmtime::format_err!(e)))?; in read()
|
| /wasmtime-44.0.1/crates/debugger/src/ |
| H A D | lib.rs | 323 .ok_or_else(|| wasmtime::format_err!("Premature close of debugger channel"))?; in wait_for_initial() 345 .map_err(|_| wasmtime::format_err!("Failed to send over debug channel"))?; in run() 365 wasmtime::format_err!("Premature close of debugger channel") in run() 376 .map_err(|_| wasmtime::format_err!("Failed to send over debug channel"))?; in run() 394 .ok_or_else(|| wasmtime::format_err!("Premature close of debugger channel"))?; in run() 464 wasmtime::format_err!("Premature close of debugger channel") in with_store() 486 .map_err(|_| wasmtime::format_err!("Premature close of debugger channel"))?; in with_store() 493 .ok_or_else(|| wasmtime::format_err!("Premature close of debugger channel"))?; in with_store()
|
| /wasmtime-44.0.1/crates/wasi-keyvalue/tests/ |
| H A D | main.rs | 5 format_err, 41 .map_err(|()| format_err!("command returned with failing exit status")) in run_wasi()
|
| /wasmtime-44.0.1/crates/wasi-config/tests/ |
| H A D | main.rs | 5 format_err, 42 .map_err(|()| format_err!("command returned with failing exit status")) in run_wasi()
|