@@ -292,7 +292,7 @@ impl std::fmt::Display for RangeType {
292292
293293impl std:: fmt:: Debug for RangeType {
294294 fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
295- write ! ( f, "{}" , self . to_string ( ) )
295+ write ! ( f, "{}" , self )
296296 }
297297}
298298
@@ -747,11 +747,11 @@ impl<'a> std::fmt::Display for InsnPrinter<'a> {
747747 } ;
748748 write ! ( f, ", {v}" )
749749 }
750- Insn :: DefinedIvar { self_val, id, .. } => write ! ( f, "DefinedIvar {self_val}, :{}" , id. contents_lossy( ) . into_owned ( ) ) ,
751- Insn :: GetIvar { self_val, id, .. } => write ! ( f, "GetIvar {self_val}, :{}" , id. contents_lossy( ) . into_owned ( ) ) ,
752- Insn :: SetIvar { self_val, id, val, .. } => write ! ( f, "SetIvar {self_val}, :{}, {val}" , id. contents_lossy( ) . into_owned ( ) ) ,
753- Insn :: GetGlobal { id, .. } => write ! ( f, "GetGlobal :{}" , id. contents_lossy( ) . into_owned ( ) ) ,
754- Insn :: SetGlobal { id, val, .. } => write ! ( f, "SetGlobal :{}, {val}" , id. contents_lossy( ) . into_owned ( ) ) ,
750+ Insn :: DefinedIvar { self_val, id, .. } => write ! ( f, "DefinedIvar {self_val}, :{}" , id. contents_lossy( ) ) ,
751+ Insn :: GetIvar { self_val, id, .. } => write ! ( f, "GetIvar {self_val}, :{}" , id. contents_lossy( ) ) ,
752+ Insn :: SetIvar { self_val, id, val, .. } => write ! ( f, "SetIvar {self_val}, :{}, {val}" , id. contents_lossy( ) ) ,
753+ Insn :: GetGlobal { id, .. } => write ! ( f, "GetGlobal :{}" , id. contents_lossy( ) ) ,
754+ Insn :: SetGlobal { id, val, .. } => write ! ( f, "SetGlobal :{}, {val}" , id. contents_lossy( ) ) ,
755755 Insn :: GetLocal { level, ep_offset } => write ! ( f, "GetLocal l{level}, EP@{ep_offset}" ) ,
756756 Insn :: SetLocal { val, level, ep_offset } => write ! ( f, "SetLocal l{level}, EP@{ep_offset}, {val}" ) ,
757757 Insn :: ToArray { val, .. } => write ! ( f, "ToArray {val}" ) ,
0 commit comments