fn region_name_is_suggestable(name: &RegionName) -> bool {
        match name.source {
            RegionNameSource::NamedEarlyBoundRegion(..)
            | RegionNameSource::NamedFreeRegion(..)
            | RegionNameSource::Static => true,

            // Don't give suggestions for upvars, closure return types, or other unnamable
            // regions.
            RegionNameSource::SynthesizedFreeEnvRegion(..)
            | RegionNameSource::CannotMatchHirTy(..)
            | RegionNameSource::MatchedHirTy(..)
            | RegionNameSource::MatchedAdtAndSegment(..)
            | RegionNameSource::AnonRegionFromUpvar(..)
            | RegionNameSource::AnonRegionFromOutput(..)
            | RegionNameSource::AnonRegionFromYieldTy(..)
            | RegionNameSource::AnonRegionFromAsyncFn(..) => {
                debug!("Region {:?} is NOT suggestable", name);
                false
            }
        }
    }
/// Returns `true` iff the `RegionNameSource` is a valid source for an outlives
/// suggestion.
//
// FIXME: Currently, we only report suggestions if the `RegionNameSource` is an early-bound
// region or a named region, avoiding using regions with synthetic names altogether. This
// allows us to avoid giving impossible suggestions (e.g. adding bounds to closure args).
// We can probably be less conservative, since some inferred free regions are namable (e.g.
// the user can explicitly name them. To do this, we would allow some regions whose names
// come from `MatchedAdtAndSegment`, being careful to filter out bad suggestions, such as
// naming the `'self` lifetime in methods, etc.
Returns `true` iff the `RegionNameSource` is a valid source for an outlives
suggestion.

Currently, we only report suggestions if the `RegionNameSource` is an early-bound
region or a named region, avoiding using regions with synthetic names altogether. This
allows us to avoid giving impossible suggestions .
We can probably be less conservative, since some inferred free regions are namable (e.g.
the user can explicitly name them. To do this, we would allow some regions whose names
come from `MatchedAdtAndSegment`, being careful to filter out bad suggestions, such as
naming the `'self` lifetime in methods, etc.
Returns ` true ` iff the ` RegionNameSource ` is a valid source for an outlives suggestion . Currently we only report suggestions if the ` RegionNameSource ` is an early - bound region or a named region avoiding using regions with synthetic names altogether . This allows us to avoid giving impossible suggestions . We can probably be less conservative since some inferred free regions are namable ( e . g . the user can explicitly name them . To do this we would allow some regions whose names come from ` MatchedAdtAndSegment ` being careful to filter out bad suggestions such as naming the ` ' self ` lifetime in methods etc .
fn region_name_is_suggestable(name: &RegionName) -> bool {
        match name.source {
            RegionNameSource::NamedEarlyBoundRegion(..)
            | RegionNameSource::NamedFreeRegion(..)
            | RegionNameSource::Static => true,
            // Don't give suggestions for upvars, closure return types, or other unnamable
            // regions.
            RegionNameSource::SynthesizedFreeEnvRegion(..)
            | RegionNameSource::CannotMatchHirTy(..)
            | RegionNameSource::MatchedHirTy(..)
            | RegionNameSource::MatchedAdtAndSegment(..)
            | RegionNameSource::AnonRegionFromUpvar(..)
            | RegionNameSource::AnonRegionFromOutput(..)
            | RegionNameSource::AnonRegionFromYieldTy(..)
            | RegionNameSource::AnonRegionFromAsyncFn(..) => {
                debug!("Region {:?} is NOT suggestable", name);
                false
            }
        }
    }
fn region_name_is_suggestable ( name : & RegionName ) -> bool { match name . source { RegionNameSource :: NamedEarlyBoundRegion ( .. ) | RegionNameSource :: NamedFreeRegion ( .. ) | RegionNameSource :: Static => true , // Don't give suggestions for upvars, closure return types, or other unnamable // regions. RegionNameSource :: SynthesizedFreeEnvRegion ( .. ) | RegionNameSource :: CannotMatchHirTy ( .. ) | RegionNameSource :: MatchedHirTy ( .. ) | RegionNameSource :: MatchedAdtAndSegment ( .. ) | RegionNameSource :: AnonRegionFromUpvar ( .. ) | RegionNameSource :: AnonRegionFromOutput ( .. ) | RegionNameSource :: AnonRegionFromYieldTy ( .. ) | RegionNameSource :: AnonRegionFromAsyncFn ( .. ) => { debug ! ( " " name ) ; false } } }
Returns `true` iff the `RegionNameSource` is a valid source for an outlives
suggestion.
Returns ` true ` iff the ` RegionNameSource ` is a valid source for an outlives suggestion .
name
&RegionName