From c672c35ad63eba8626d850eed185a8d45444a857 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 21 Sep 2022 15:25:30 +0200 Subject: [PATCH] format > to_string --- src/shims/intrinsics/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shims/intrinsics/mod.rs b/src/shims/intrinsics/mod.rs index b85c799e2da..e0985ace5be 100644 --- a/src/shims/intrinsics/mod.rs +++ b/src/shims/intrinsics/mod.rs @@ -365,7 +365,7 @@ fn emulate_intrinsic_by_name( "breakpoint" => { let [] = check_arg_count(args)?; // normally this would raise a SIGTRAP, which aborts if no debugger is connected - throw_machine_stop!(TerminationInfo::Abort("Trace/breakpoint trap".to_string())) + throw_machine_stop!(TerminationInfo::Abort(format!("Trace/breakpoint trap"))) } name => throw_unsup_format!("unimplemented intrinsic: `{name}`"),