@@ -351,7 +351,10 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
351351 cmds,
352352 "quit" . to_strbuf ( ) ] . connect ( "\n " ) ;
353353 debug ! ( "script_str = {}" , script_str) ;
354- dump_output_file ( config, testfile, script_str, "debugger.script" ) ;
354+ dump_output_file ( config,
355+ testfile,
356+ script_str. as_slice ( ) ,
357+ "debugger.script" ) ;
355358
356359
357360 procsrv:: run ( "" ,
@@ -459,7 +462,10 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
459462 "quit\n " . to_strbuf ( )
460463 ] . connect ( "\n " ) ;
461464 debug ! ( "script_str = {}" , script_str) ;
462- dump_output_file ( config, testfile, script_str, "debugger.script" ) ;
465+ dump_output_file ( config,
466+ testfile,
467+ script_str. as_slice ( ) ,
468+ "debugger.script" ) ;
463469
464470 // run debugger script with gdb
465471 #[ cfg( windows) ]
@@ -553,7 +559,10 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
553559
554560 // Write the script into a file
555561 debug ! ( "script_str = {}" , script_str) ;
556- dump_output_file ( config, testfile, script_str. into_owned ( ) , "debugger.script" ) ;
562+ dump_output_file ( config,
563+ testfile,
564+ script_str. as_slice ( ) ,
565+ "debugger.script" ) ;
557566 let debugger_script = make_out_name ( config, testfile, "debugger.script" ) ;
558567
559568 // Let LLDB execute the script via lldb_batchmode.py
@@ -610,8 +619,8 @@ fn parse_debugger_commands(file_path: &Path, debugger_prefix: &str)
610619 -> DebuggerCommands {
611620 use std:: io:: { BufferedReader , File } ;
612621
613- let command_directive = debugger_prefix + " -command";
614- let check_directive = debugger_prefix + " -check";
622+ let command_directive = format ! ( "{} -command", debugger_prefix ) ;
623+ let check_directive = format ! ( "{} -check", debugger_prefix ) ;
615624
616625 let mut breakpoint_lines = vec ! ( ) ;
617626 let mut commands = vec ! ( ) ;
0 commit comments