Skip to content

Commit c672c35

Browse files
committed
format > to_string
1 parent 33284ec commit c672c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/intrinsics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
365365
"breakpoint" => {
366366
let [] = check_arg_count(args)?;
367367
// normally this would raise a SIGTRAP, which aborts if no debugger is connected
368-
throw_machine_stop!(TerminationInfo::Abort("Trace/breakpoint trap".to_string()))
368+
throw_machine_stop!(TerminationInfo::Abort(format!("Trace/breakpoint trap")))
369369
}
370370

371371
name => throw_unsup_format!("unimplemented intrinsic: `{name}`"),

0 commit comments

Comments
 (0)