| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | trap.hh | 117 explicit Trap(std::string_view msg) in Trap() argument 118 : Trap(wasmtime_trap_new(msg.data(), msg.size())) {} in Trap() 125 wasm_byte_vec_t msg; in message() local 126 wasm_trap_message(ptr.get(), &msg); in message() 127 std::string ret(msg.data, msg.size - 1); in message() 128 wasm_byte_vec_delete(&msg); in message()
|
| /wasmtime-44.0.1/crates/fuzzing/tests/oom/ |
| H A D | error.rs | 27 let error = Error::msg("ouch"); in error_msg() 46 let error = Error::msg("hello"); in error_context() 55 let error = Error::msg("hello"); in error_chain() 74 let error = Error::msg("hello"); in display_fmt_error() 84 let error = Error::msg("hello"); in alternate_display_fmt_error() 94 let error = Error::msg("hello"); in debug_fmt_error() 104 let error = Error::msg("hello"); in alternate_debug_fmt_error()
|
| /wasmtime-44.0.1/cranelift/isle/isle/src/ |
| H A D | log.rs | 7 ($($msg:tt)*) => { 8 ::log::trace!($($msg)*) 16 ($($msg:tt)*) => {};
|
| H A D | error.rs | 22 Error::ParseError { msg, .. } => format!("parse error: {msg}"), in fmt() 23 Error::TypeError { msg, .. } => format!("type error: {msg}"), in fmt() 24 Error::UnreachableError { msg, .. } => format!("unreachable rule: {msg}"), in fmt() 25 Error::OverlapError { msg, .. } => format!("overlap error: {msg}"), in fmt() 26 Error::RecursionError { msg, .. } => format!("recursion error: {msg}"), in fmt() 97 msg: String, 106 msg: String, 115 msg: String, 124 msg: String, 135 msg: String,
|
| /wasmtime-44.0.1/cranelift/filetests/src/ |
| H A D | test_verifier.rs | 62 let mut msg = String::new(); in run() localVariable 72 writeln!(msg, " expected error {}: {}", expect.0, expect.1).unwrap(); in run() 82 writeln!(msg, "unexpected error {err}").unwrap(); in run() 85 if msg.is_empty() { in run()
|
| H A D | concurrent.rs | 153 if let Some(msg) = e.downcast_ref::<String>() { in worker_thread() 155 } else if let Some(msg) = e.downcast_ref::<&'static str>() { in worker_thread() 162 if let Err(ref msg) = result { in worker_thread()
|
| /wasmtime-44.0.1/cranelift/serde/src/ |
| H A D | clif-json.rs | 74 if let Err(mut msg) = res_serde { in main() 75 if !msg.ends_with('\n') { in main() 76 msg.push('\n'); in main() 79 io::stderr().write_all(msg.as_bytes()).unwrap(); in main()
|
| /wasmtime-44.0.1/crates/wasi-common/src/sync/sched/ |
| H A D | windows.rs | 73 .map_err(|_| Error::trap(EnvError::msg("failed to take lock of STDIN_POLL")))? in poll_oneoff_() 167 return Err(Error::trap(EnvError::msg( in poll() 176 .map_err(|_| Error::trap(EnvError::msg("request_tx channel closed")))?; in poll() 183 Err(RecvTimeoutError::Disconnected) => Err(Error::trap(EnvError::msg( in poll() 190 .map_err(|_| Error::trap(EnvError::msg("StdinPoll notify_rx channel closed"))), in poll() 194 Err(TryRecvError::Disconnected) => Err(Error::trap(EnvError::msg( in poll()
|
| /wasmtime-44.0.1/crates/wasi-tls/src/providers/ |
| H A D | rustls.rs | 19 ServerName::try_from(server_name).map_err(|_| Error::msg("invalid server name"))?; in connect() 50 Error::msg(e.to_string()) in from() 57 Err(io_err) => Error::msg(io_err), in rustls_to_wasi_error()
|
| H A D | unsupported.rs | 19 Err(Error::msg( in connect()
|
| /wasmtime-44.0.1/tests/ |
| H A D | wasi.rs | 228 let mut msg = String::new(); in run_test() localVariable 229 writeln!(msg, " command: {cmd:?}")?; in run_test() 230 writeln!(msg, " spec: {spec:#?}")?; in run_test() 231 writeln!(msg, " result.status: {}", result.status)?; in run_test() 234 msg, in run_test() 241 msg, in run_test()
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | main.rs | 135 fn assert_contains(&self, msg: &str); in assert_contains() 139 fn assert_contains(&self, msg: &str) { in assert_contains() 140 if self.chain().any(|e| e.to_string().contains(msg)) { in assert_contains()
|
| /wasmtime-44.0.1/crates/core/tests/ |
| H A D | tests.rs | 130 fn msg() { in msg() function 131 let error = Error::msg("uh oh!"); in msg() 133 let msg = error.to_string(); in msg() localVariable 134 assert_eq!(msg, "uh oh!"); in msg() 174 let e = Error::msg("str"); in is() 239 assert_backtrace(Error::msg("whoops")); in backtrace() 418 let error = Error::msg("uh oh"); in downcast() 489 let e = Error::msg("str"); in downcast_ref() 522 let mut e = Error::msg("str"); in downcast_mut() 785 let error = Error::msg("ouch") in fmt_display_alternate() [all …]
|
| /wasmtime-44.0.1/cranelift/srcgen/src/ |
| H A D | error.rs | 15 pub fn with_msg<S: Into<String>>(msg: S) -> Error { in with_msg() 17 inner: Box::new(ErrorInner::Msg(msg.into())), in with_msg()
|
| /wasmtime-44.0.1/crates/wasi-tls/src/ |
| H A D | error.rs | 8 pub fn msg<M>(message: M) -> Self in msg() method 36 Err(io_err) => Self::msg(io_err), in from()
|
| /wasmtime-44.0.1/cranelift/reader/src/ |
| H A D | error.rs | 43 ( $loc:expr, $msg:expr ) => { 46 message: $msg.to_string(),
|
| /wasmtime-44.0.1/examples/ |
| H A D | async.cc | 47 void exit_with_error(std::string msg, wasmtime_error_t *err, in exit_with_error() argument 49 std::cerr << "error: " << msg << std::endl; in exit_with_error() 156 std::string msg = ex.what(); in poll_print_finished_state() local 157 *async_env->trap_ret = wasmtime_trap_new(msg.data(), msg.size()); in poll_print_finished_state()
|
| /wasmtime-44.0.1/crates/core/src/error/ |
| H A D | macros.rs | 313 Error::msg(message) in construct() 351 return Self::msg(s); in from_format_args() 358 Error::msg(f.message) in from_format_args()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | func.rs | 170 if let Some(msg) = panic.downcast_ref::<String>() { in error_from_panic() 171 Error::msg(msg.clone()) in error_from_panic() 172 } else if let Some(msg) = panic.downcast_ref::<&'static str>() { in error_from_panic() 173 Error::msg(*msg) in error_from_panic() 175 Error::msg("rust panic happened") in error_from_panic()
|
| H A D | error.rs | 25 msg: *const std::ffi::c_char, in wasmtime_error_new() 27 let msg_bytes = unsafe { std::ffi::CStr::from_ptr(msg).to_bytes() }; in wasmtime_error_new()
|
| /wasmtime-44.0.1/crates/fuzzing/src/oracles/ |
| H A D | diff_v8.rs | 83 let verify_wasmtime = |msg: &str| { in assert_error_match() 84 assert!(wasmtime_msg.contains(msg), "{wasmtime_msg}\n!=\n{v8}"); in assert_error_match() 86 let verify_v8 = |msg: &[&str]| { in assert_error_match() 88 msg.iter().any(|msg| v8.contains(msg)), in assert_error_match()
|
| /wasmtime-44.0.1/crates/fiber/src/ |
| H A D | miri.rs | 108 .wait_while(lock, |msg| !matches!(msg, State::ResumeWith(_))) in run() 185 State::SuspendWith(msg) => msg, in resume()
|
| /wasmtime-44.0.1/crates/wasi-tls/src/p3/ |
| H A D | host.rs | 64 let err = Error::msg("send already configured"); in send() 126 let err = Error::msg("receive already configured"); in receive() 184 fn connect_err(msg: &'static str) -> BoxFutureTlsStream { in connect() 185 Box::pin(async move { Err(Error::msg(msg)) }) in connect()
|
| /wasmtime-44.0.1/examples/min-platform/embedding/src/ |
| H A D | lib.rs | 44 let msg = format!("{e:?}"); in run() localVariable 45 let len = buf.len().min(msg.len()); in run() 46 buf[..len].copy_from_slice(&msg.as_bytes()[..len]); in run()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | trap_encoding.rs | 20 $name:ident = $msg:tt, 48 $(Self::$name => $msg,)*
|