@@ -2212,9 +2212,14 @@ impl<'test> TestCx<'test> {
22122212 proc_res. fatal ( None , || ( ) ) ;
22132213 }
22142214
2215- fn fatal_proc_rec_with_ctx ( & self , err : & str , proc_res : & ProcRes , ctx : impl FnOnce ( Self ) ) -> ! {
2215+ fn fatal_proc_rec_with_ctx (
2216+ & self ,
2217+ err : & str ,
2218+ proc_res : & ProcRes ,
2219+ on_failure : impl FnOnce ( Self ) ,
2220+ ) -> ! {
22162221 self . error ( err) ;
2217- proc_res. fatal ( None , || ctx ( * self ) ) ;
2222+ proc_res. fatal ( None , || on_failure ( * self ) ) ;
22182223 }
22192224
22202225 // codegen tests (using FileCheck)
@@ -2376,7 +2381,7 @@ impl<'test> TestCx<'test> {
23762381 . wait ( )
23772382 . unwrap ( ) ;
23782383 if !status. success ( ) {
2379- self . fatal ( "failed to run tidy - is installed?" ) ;
2384+ self . fatal ( "failed to run tidy - is it installed?" ) ;
23802385 }
23812386 let status = Command :: new ( tidy) . arg ( & compare_dir) . spawn ( ) . unwrap ( ) . wait ( ) . unwrap ( ) ;
23822387 if !status. success ( ) {
@@ -3653,7 +3658,7 @@ pub struct ProcRes {
36533658}
36543659
36553660impl ProcRes {
3656- pub fn fatal ( & self , err : Option < & str > , ctx : impl FnOnce ( ) ) -> ! {
3661+ pub fn fatal ( & self , err : Option < & str > , on_failure : impl FnOnce ( ) ) -> ! {
36573662 if let Some ( e) = err {
36583663 println ! ( "\n error: {}" , e) ;
36593664 }
@@ -3675,7 +3680,7 @@ impl ProcRes {
36753680 json:: extract_rendered( & self . stdout) ,
36763681 json:: extract_rendered( & self . stderr) ,
36773682 ) ;
3678- ctx ( ) ;
3683+ on_failure ( ) ;
36793684 // Use resume_unwind instead of panic!() to prevent a panic message + backtrace from
36803685 // compiletest, which is unnecessary noise.
36813686 std:: panic:: resume_unwind ( Box :: new ( ( ) ) ) ;
0 commit comments