@@ -36,7 +36,7 @@ mod private {
3636
3737/// A unique identifier for anything that we create a debuginfo node for.
3838/// The types it contains are expected to already be normalized (which
39- /// is debug_asserted in the constructors).
39+ /// is asserted in the constructors).
4040///
4141/// Note that there are some things that only show up in debuginfo, like
4242/// the separate type descriptions for each enum variant. These get an ID
@@ -58,12 +58,12 @@ pub(super) enum UniqueTypeId<'tcx> {
5858
5959impl < ' tcx > UniqueTypeId < ' tcx > {
6060 pub fn for_ty ( tcx : TyCtxt < ' tcx > , t : Ty < ' tcx > ) -> Self {
61- debug_assert_eq ! ( t, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , t) ) ;
61+ assert_eq ! ( t, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , t) ) ;
6262 UniqueTypeId :: Ty ( t, private:: HiddenZst )
6363 }
6464
6565 pub fn for_enum_variant_part ( tcx : TyCtxt < ' tcx > , enum_ty : Ty < ' tcx > ) -> Self {
66- debug_assert_eq ! ( enum_ty, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , enum_ty) ) ;
66+ assert_eq ! ( enum_ty, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , enum_ty) ) ;
6767 UniqueTypeId :: VariantPart ( enum_ty, private:: HiddenZst )
6868 }
6969
@@ -72,7 +72,7 @@ impl<'tcx> UniqueTypeId<'tcx> {
7272 enum_ty : Ty < ' tcx > ,
7373 variant_idx : VariantIdx ,
7474 ) -> Self {
75- debug_assert_eq ! ( enum_ty, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , enum_ty) ) ;
75+ assert_eq ! ( enum_ty, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , enum_ty) ) ;
7676 UniqueTypeId :: VariantStructType ( enum_ty, variant_idx, private:: HiddenZst )
7777 }
7878
@@ -81,7 +81,7 @@ impl<'tcx> UniqueTypeId<'tcx> {
8181 enum_ty : Ty < ' tcx > ,
8282 variant_idx : VariantIdx ,
8383 ) -> Self {
84- debug_assert_eq ! ( enum_ty, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , enum_ty) ) ;
84+ assert_eq ! ( enum_ty, tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , enum_ty) ) ;
8585 UniqueTypeId :: VariantStructTypeCppLikeWrapper ( enum_ty, variant_idx, private:: HiddenZst )
8686 }
8787
@@ -90,11 +90,11 @@ impl<'tcx> UniqueTypeId<'tcx> {
9090 self_type : Ty < ' tcx > ,
9191 implemented_trait : Option < PolyExistentialTraitRef < ' tcx > > ,
9292 ) -> Self {
93- debug_assert_eq ! (
93+ assert_eq ! (
9494 self_type,
9595 tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , self_type)
9696 ) ;
97- debug_assert_eq ! (
97+ assert_eq ! (
9898 implemented_trait,
9999 tcx. normalize_erasing_regions( ParamEnv :: reveal_all( ) , implemented_trait)
100100 ) ;
@@ -252,7 +252,7 @@ pub(super) fn build_type_with_children<'ll, 'tcx>(
252252 members : impl FnOnce ( & CodegenCx < ' ll , ' tcx > , & ' ll DIType ) -> SmallVec < & ' ll DIType > ,
253253 generics : impl FnOnce ( & CodegenCx < ' ll , ' tcx > ) -> SmallVec < & ' ll DIType > ,
254254) -> DINodeCreationResult < ' ll > {
255- debug_assert_eq ! (
255+ assert_eq ! (
256256 debug_context( cx) . type_map. di_node_for_unique_id( stub_info. unique_type_id) ,
257257 None
258258 ) ;
0 commit comments