@@ -58,9 +58,6 @@ impl<I: Interner> VarianceDiagInfo<I> {
5858pub trait TypeRelation < I : Interner > : Sized {
5959 fn tcx ( & self ) -> I ;
6060
61- /// Returns a static string we can use for printouts.
62- fn tag ( & self ) -> & ' static str ;
63-
6461 /// Generic relation routine suitable for most anything.
6562 fn relate < T : Relate < I > > ( & mut self , a : T , b : T ) -> RelateResult < I , T > {
6663 Relate :: relate ( self , a, b)
@@ -572,15 +569,20 @@ pub fn structurally_relate_consts<I: Interner, R: TypeRelation<I>>(
572569 mut a : I :: Const ,
573570 mut b : I :: Const ,
574571) -> RelateResult < I , I :: Const > {
575- debug ! ( "{}.structurally_relate_consts(a = {:?}, b = {:?})" , relation . tag ( ) , a, b) ;
572+ debug ! ( "{}.structurally_relate_consts(a = {:?}, b = {:?})" , std :: any :: type_name :: < R > ( ) , a, b) ;
576573 let tcx = relation. tcx ( ) ;
577574
578575 if tcx. features ( ) . generic_const_exprs ( ) {
579576 a = tcx. expand_abstract_consts ( a) ;
580577 b = tcx. expand_abstract_consts ( b) ;
581578 }
582579
583- debug ! ( "{}.structurally_relate_consts(normed_a = {:?}, normed_b = {:?})" , relation. tag( ) , a, b) ;
580+ debug ! (
581+ "{}.structurally_relate_consts(normed_a = {:?}, normed_b = {:?})" ,
582+ std:: any:: type_name:: <R >( ) ,
583+ a,
584+ b
585+ ) ;
584586
585587 // Currently, the values that can be unified are primitive types,
586588 // and those that derive both `PartialEq` and `Eq`, corresponding
0 commit comments