@@ -58,9 +58,6 @@ impl<I: Interner> VarianceDiagInfo<I> {
5858pub trait TypeRelation < I : Interner > : Sized {
5959 fn cx ( & 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)
@@ -571,15 +568,20 @@ pub fn structurally_relate_consts<I: Interner, R: TypeRelation<I>>(
571568 mut a : I :: Const ,
572569 mut b : I :: Const ,
573570) -> RelateResult < I , I :: Const > {
574- debug ! ( "{}.structurally_relate_consts(a = {:?}, b = {:?})" , relation . tag ( ) , a, b) ;
571+ debug ! ( "{}.structurally_relate_consts(a = {:?}, b = {:?})" , std :: any :: type_name :: < R > ( ) , a, b) ;
575572 let cx = relation. cx ( ) ;
576573
577574 if cx. features ( ) . generic_const_exprs ( ) {
578575 a = cx. expand_abstract_consts ( a) ;
579576 b = cx. expand_abstract_consts ( b) ;
580577 }
581578
582- debug ! ( "{}.structurally_relate_consts(normed_a = {:?}, normed_b = {:?})" , relation. tag( ) , a, b) ;
579+ debug ! (
580+ "{}.structurally_relate_consts(normed_a = {:?}, normed_b = {:?})" ,
581+ std:: any:: type_name:: <R >( ) ,
582+ a,
583+ b
584+ ) ;
583585
584586 // Currently, the values that can be unified are primitive types,
585587 // and those that derive both `PartialEq` and `Eq`, corresponding
0 commit comments