pub fn empty_substs_for_def_id(self, item_def_id: DefId) -> SubstsRef<'tcx> {
        InternalSubsts::for_item(self, item_def_id, |param, _| {
            match param.kind {
                GenericParamDefKind::Lifetime => self.lifetimes.re_erased.into(),
                GenericParamDefKind::Type { .. } => {
                    bug!("empty_substs_for_def_id: {:?} has type parameters", item_def_id)
                }
                GenericParamDefKind::Const { .. } => {
                    bug!("empty_substs_for_def_id: {:?} has const parameters", item_def_id)
                }
            }
        })
    }
/// Given the `DefId` of some item that has no type or const parameters, make
/// a suitable "empty substs" for it.
Given the `DefId` of some item that has no type or const parameters, make
a suitable "empty substs" for it.
Given the ` DefId ` of some item that has no type or const parameters make a suitable " empty substs " for it .
pub fn empty_substs_for_def_id(self, item_def_id: DefId) -> SubstsRef<'tcx> {
        InternalSubsts::for_item(self, item_def_id, |param, _| {
            match param.kind {
                GenericParamDefKind::Lifetime => self.lifetimes.re_erased.into(),
                GenericParamDefKind::Type { .. } => {
                    bug!("empty_substs_for_def_id: {:?} has type parameters", item_def_id)
                }
                GenericParamDefKind::Const { .. } => {
                    bug!("empty_substs_for_def_id: {:?} has const parameters", item_def_id)
                }
            }
        })
    }
pub fn empty_substs_for_def_id ( self , item_def_id : DefId ) -> SubstsRef < ' tcx > { InternalSubsts :: for_item ( self , item_def_id , | param , _ | { match param . kind { GenericParamDefKind :: Lifetime => self . lifetimes . re_erased . into ( ) , GenericParamDefKind :: Type { .. } => { bug ! ( " " item_def_id ) } GenericParamDefKind :: Const { .. } => { bug ! ( " " item_def_id ) } } } ) }
Given the `DefId` of some item that has no type or const parameters, make
a suitable "empty substs" for it.
Given the ` DefId ` of some item that has no type or const parameters make a suitable " empty substs " for it .
self
item_def_id
DefId