@@ -10,7 +10,6 @@ use std::sync::LazyLock;
10
10
use super :: prelude:: * ;
11
11
use crate :: {
12
12
ast:: identifiers:: global_id:: view:: { ConstructorKind , PathSegment , TypeDefKind } ,
13
- printer:: pretty_ast:: DebugJSON ,
14
13
resugarings:: BinOp ,
15
14
} ;
16
15
@@ -371,7 +370,7 @@ set_option linter.unusedVariables false
371
370
. group( )
372
371
. append( line!( ) ) ,
373
372
GenericParamKind :: Const { .. } => {
374
- todo!( "-- to debug const param run: {}" , DebugJSON ( param ) )
373
+ todo!( "-- Unsupported const param" )
375
374
}
376
375
}
377
376
} ) ) ,
@@ -386,10 +385,7 @@ set_option linter.unusedVariables false
386
385
) -> DocBuilder < ' a , Self , A > {
387
386
match generic_constraint {
388
387
GenericConstraint :: Type ( impl_ident) => docs ! [ impl_ident] . brackets ( ) ,
389
- _ => todo ! (
390
- "-- to debug generic constraint run: {}" ,
391
- DebugJSON ( generic_constraint)
392
- ) ,
388
+ _ => todo ! ( "-- unsupported constraint" ) ,
393
389
}
394
390
}
395
391
@@ -475,10 +471,7 @@ set_option linter.unusedVariables false
475
471
docs ! [ constructor]
476
472
} else if base. is_some ( ) {
477
473
// TODO : support base expressions. see https://github.com/cryspen/hax/issues/1637
478
- todo ! (
479
- "-- Unsupported base expressions for structs. To see the ast of the item run : {}" ,
480
- DebugJSON ( & * * kind)
481
- )
474
+ todo ! ( "-- Unsupported base expressions for structs." )
482
475
} else {
483
476
docs ! [ constructor, line!( ) , self . arguments( fields, is_record) ]
484
477
. nest ( INDENT )
@@ -709,16 +702,10 @@ set_option linter.unusedVariables false
709
702
let kind = impl_. kind ( ) ;
710
703
match & kind {
711
704
ImplExprKind :: Self_ => docs ! [ self . render_last( item) ] ,
712
- _ => todo ! (
713
- "sorry \n -- support only local associated types: {}\n " ,
714
- DebugJSON ( ty)
715
- ) , // Support only local associated types
705
+ _ => todo ! ( "sorry \n -- support only local associated types\n " ) , // Support only local associated types
716
706
}
717
707
}
718
- _ => todo ! (
719
- "sorry \n -- unsupported type, to debug run: {}\n " ,
720
- DebugJSON ( ty)
721
- ) ,
708
+ _ => todo ! ( "sorry \n -- unsupported type\n " ) ,
722
709
}
723
710
}
724
711
@@ -996,7 +983,7 @@ set_option linter.unusedVariables false
996
983
]
997
984
. nest( INDENT ) ,
998
985
] ,
999
- _ => todo ! ( "-- to debug missing item run: {}" , DebugJSON ( kind ) ) ,
986
+ _ => todo ! ( "-- unsupported item" ) ,
1000
987
}
1001
988
}
1002
989
@@ -1032,7 +1019,7 @@ set_option linter.unusedVariables false
1032
1019
. brackets( ) ] ) )
1033
1020
]
1034
1021
}
1035
- _ => todo!( "-- to debug missing trait item run: {}" , DebugJSON ( kind ) ) ,
1022
+ _ => todo!( "-- unsupported trait item" ) ,
1036
1023
} ]
1037
1024
}
1038
1025
0 commit comments