@@ -89,7 +89,7 @@ fn run_cfail_test(config: &Config, props: &TestProps, testfile: &Path) {
89
89
let proc_res = compile_test ( config, props, testfile) ;
90
90
91
91
if proc_res. status . success ( ) {
92
- fatal_proc_rec ( & format ! ( "{} test compiled successfully!" , config. mode) [ ] ,
92
+ fatal_proc_rec ( & format ! ( "{} test compiled successfully!" , config. mode) [ .. ] ,
93
93
& proc_res) ;
94
94
}
95
95
@@ -398,7 +398,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
398
398
for line in breakpoint_lines. iter ( ) {
399
399
script_str. push_str ( & format ! ( "break {:?}:{}\n " ,
400
400
testfile. filename_display( ) ,
401
- * line) [ ] ) ;
401
+ * line) [ .. ] ) ;
402
402
}
403
403
script_str. push_str ( & cmds) ;
404
404
script_str. push_str ( "quit\n " ) ;
@@ -553,17 +553,17 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
553
553
script_str. push_str ( "set print pretty off\n " ) ;
554
554
555
555
// Add the pretty printer directory to GDB's source-file search path
556
- script_str. push_str ( & format ! ( "directory {}\n " , rust_pp_module_abs_path) [ ] ) ;
556
+ script_str. push_str ( & format ! ( "directory {}\n " , rust_pp_module_abs_path) [ .. ] ) ;
557
557
558
558
// Load the target executable
559
559
script_str. push_str ( & format ! ( "file {}\n " ,
560
- exe_file. as_str( ) . unwrap( ) . replace( "\\ " , "\\ \\ " ) ) [ ] ) ;
560
+ exe_file. as_str( ) . unwrap( ) . replace( "\\ " , "\\ \\ " ) ) [ .. ] ) ;
561
561
562
562
// Add line breakpoints
563
563
for line in & breakpoint_lines {
564
564
script_str. push_str ( & format ! ( "break '{}':{}\n " ,
565
565
testfile. filename_display( ) ,
566
- * line) [ ] ) ;
566
+ * line) [ .. ] ) ;
567
567
}
568
568
569
569
script_str. push_str ( & cmds) ;
@@ -689,7 +689,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
689
689
. unwrap ( )
690
690
. to_string ( ) ;
691
691
692
- script_str. push_str ( & format ! ( "command script import {}\n " , & rust_pp_module_abs_path[ ..] ) [ ] ) ;
692
+ script_str. push_str ( & format ! ( "command script import {}\n " , & rust_pp_module_abs_path[ ..] ) [ .. ] ) ;
693
693
script_str. push_str ( "type summary add --no-value " ) ;
694
694
script_str. push_str ( "--python-function lldb_rust_formatters.print_val " ) ;
695
695
script_str. push_str ( "-x \" .*\" --category Rust\n " ) ;
0 commit comments