File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -490,11 +490,6 @@ impl<'tcx> ToJson<'tcx> for mir::Statement<'tcx> {
490
490
}
491
491
}
492
492
493
- fn operand_span ( mir : & MirState , op : & mir:: Operand ) -> Option < Span > {
494
- let local = op. place ( ) ?. as_local ( ) ?;
495
- Some ( mir. mir ?. local_decls [ local] . source_info . span )
496
- }
497
-
498
493
impl ToJson < ' _ > for Span {
499
494
fn to_json ( & self , mir : & mut MirState ) -> serde_json:: Value {
500
495
let source_map = mir. state . session . source_map ( ) ;
@@ -526,7 +521,6 @@ impl<'tcx> ToJson<'tcx> for mir::Terminator<'tcx> {
526
521
let vals: Vec < String > =
527
522
targets. iter ( ) . map ( |( c, _) | c. to_string ( ) ) . collect ( ) ;
528
523
let discr_span = mir. match_span_map . get ( & self . source_info . span ) . cloned ( )
529
- . or_else ( || operand_span ( mir, discr) )
530
524
. unwrap_or ( self . source_info . span ) ;
531
525
json ! ( {
532
526
"kind" : "SwitchInt" ,
You can’t perform that action at this time.
0 commit comments