File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1422,20 +1422,26 @@ pub fn interpret_start_points<'a, 'tcx>(
14221422 if attr. check_name ( "miri_run" ) {
14231423 let item = tcx. map . expect_item ( id) ;
14241424
1425- println ! ( "Interpreting: {}" , item. name) ;
1425+ if TRACE_EXECUTION {
1426+ println ! ( "Interpreting: {}" , item. name) ;
1427+ }
14261428
14271429 let mut gecx = GlobalEvalContext :: new ( tcx, mir_map) ;
14281430 let mut fecx = FnEvalContext :: new ( & mut gecx) ;
14291431 match fecx. call_nested ( mir) {
1430- Ok ( Some ( return_ptr) ) => fecx. memory . dump ( return_ptr. alloc_id ) ,
1432+ Ok ( Some ( return_ptr) ) => if TRACE_EXECUTION {
1433+ fecx. memory . dump ( return_ptr. alloc_id ) ;
1434+ } ,
14311435 Ok ( None ) => println ! ( "(diverging function returned)" ) ,
14321436 Err ( _e) => {
14331437 // TODO(solson): Detect whether the error was already reported or not.
14341438 // tcx.sess.err(&e.to_string());
14351439 }
14361440 }
14371441
1438- println ! ( "" ) ;
1442+ if TRACE_EXECUTION {
1443+ println ! ( "" ) ;
1444+ }
14391445 }
14401446 }
14411447 }
You can’t perform that action at this time.
0 commit comments