@@ -575,6 +575,9 @@ let rec translate_sty (span : Meta.span option) (ty : T.ty) : ty =
575
575
| TDynTrait _ ->
576
576
craise_opt_span __FILE__ __LINE__ span
577
577
" Dynamic trait types are not supported yet"
578
+ | TError _ ->
579
+ craise_opt_span __FILE__ __LINE__ span
580
+ " Found type error in the output of charon"
578
581
579
582
and translate_sgeneric_args (span : Meta.span option )
580
583
(generics : T.generic_args ) : generic_args =
@@ -652,7 +655,7 @@ let translate_type_decl_kind (span : Meta.span) (kind : T.type_decl_kind) :
652
655
| Alias _ ->
653
656
craise __FILE__ __LINE__ span
654
657
" type aliases should have been removed earlier"
655
- | T. Union _ | T. Opaque | T. TError _ -> Opaque
658
+ | T. Union _ | T. Opaque | T. TDeclError _ -> Opaque
656
659
657
660
(* * Compute which input parameters should be implicit or explicit.
658
661
@@ -813,6 +816,9 @@ let rec translate_fwd_ty (span : Meta.span option) (type_infos : type_infos)
813
816
| TDynTrait _ ->
814
817
craise_opt_span __FILE__ __LINE__ span
815
818
" Dynamic trait types are not supported yet"
819
+ | TError _ ->
820
+ craise_opt_span __FILE__ __LINE__ span
821
+ " Found type error in the output of charon"
816
822
817
823
and translate_fwd_generic_args (span : Meta.span option )
818
824
(type_infos : type_infos ) (generics : T.generic_args ) : generic_args =
@@ -931,6 +937,9 @@ let rec translate_back_ty (span : Meta.span option) (type_infos : type_infos)
931
937
| TDynTrait _ ->
932
938
craise_opt_span __FILE__ __LINE__ span
933
939
" Dynamic trait types are not supported yet"
940
+ | TError _ ->
941
+ craise_opt_span __FILE__ __LINE__ span
942
+ " Found type error in the output of charon"
934
943
935
944
(* * Simply calls [translate_back_ty] *)
936
945
let ctx_translate_back_ty (ctx : bs_ctx ) (keep_region : 'r -> bool )
0 commit comments