pub fn is_bound_region_in_impl_item(&self, suitable_region_binding_scope: LocalDefId) -> bool {
        let container_id =
            self.associated_item(suitable_region_binding_scope.to_def_id()).container.id();
        if self.impl_trait_ref(container_id).is_some() {
            // For now, we do not try to target impls of traits. This is
            // because this message is going to suggest that the user
            // change the fn signature, but they may not be free to do so,
            // since the signature must match the trait.
            //
            // FIXME(#42706) -- in some cases, we could do better here.
            return true;
        }
        false
    }
// Checks if the bound region is in Impl Item.
Checks if the bound region is in Impl Item.
Checks if the bound region is in Impl Item .
pub fn is_bound_region_in_impl_item(&self, suitable_region_binding_scope: LocalDefId) -> bool {
        let container_id =
            self.associated_item(suitable_region_binding_scope.to_def_id()).container.id();
        if self.impl_trait_ref(container_id).is_some() {
            // For now, we do not try to target impls of traits. This is
            // because this message is going to suggest that the user
            // change the fn signature, but they may not be free to do so,
            // since the signature must match the trait.
            //
            // FIXME(#42706) -- in some cases, we could do better here.
            return true;
        }
        false
    }
pub fn is_bound_region_in_impl_item ( & self , suitable_region_binding_scope : LocalDefId ) -> bool { let container_id = self . associated_item ( suitable_region_binding_scope . to_def_id ( ) ) . container . id ( ) ; if self . impl_trait_ref ( container_id ) . is_some ( ) { // For now, we do not try to target impls of traits. This is // because this message is going to suggest that the user // change the fn signature, but they may not be free to do so, // since the signature must match the trait. // // FIXME(#42706) -- in some cases, we could do better here. return true ; } false }
Checks if the bound region is in Impl Item.
Checks if the bound region is in Impl Item .
&self
suitable_region_binding_scope
LocalDefId
&self
suitable_region_binding_scope
LocalDefId