fn compute_region_bound<'tcx, AC: AstConv<'tcx>, RS:RegionScope>(
    this: &AC,
    rscope: &RS,
    span: Span,
    builtin_bounds: ty::BuiltinBounds,
    region_bounds: &[&ast::Lifetime],
    trait_bounds: &[Rc<ty::TraitRef<'tcx>>])
    -> ty::Region
{
    match compute_opt_region_bound(this.tcx(), span, builtin_bounds,
                                   region_bounds, trait_bounds) {
        Some(r) => r,
        None => {
            match rscope.default_region_bound(span) {
                Some(r) => { r }
                None => {
                    this.tcx().sess.span_err(
                        span,
                        format!("explicit lifetime bound required").as_slice());
                    ty::ReStatic
                }
            }
        }
    }
}
/// A version of `compute_opt_region_bound` for use where some region bound is required
/// (existential types, basically). Reports an error if no region bound can be derived and we are
/// in an `rscope` that does not provide a default.
A version of `compute_opt_region_bound` for use where some region bound is required
(existential types, basically). Reports an error if no region bound can be derived and we are
in an `rscope` that does not provide a default.
A version of ` compute_opt_region_bound ` for use where some region bound is required ( existential types basically ) . Reports an error if no region bound can be derived and we are in an ` rscope ` that does not provide a default .
fn compute_region_bound<'tcx, AC: AstConv<'tcx>, RS:RegionScope>(
    this: &AC,
    rscope: &RS,
    span: Span,
    builtin_bounds: ty::BuiltinBounds,
    region_bounds: &[&ast::Lifetime],
    trait_bounds: &[Rc<ty::TraitRef<'tcx>>])
    -> ty::Region
{
    match compute_opt_region_bound(this.tcx(), span, builtin_bounds,
                                   region_bounds, trait_bounds) {
        Some(r) => r,
        None => {
            match rscope.default_region_bound(span) {
                Some(r) => { r }
                None => {
                    this.tcx().sess.span_err(
                        span,
                        format!("explicit lifetime bound required").as_slice());
                    ty::ReStatic
                }
            }
        }
    }
}
fn compute_region_bound < ' tcx , AC : AstConv < ' tcx > , RS : RegionScope > ( this : & AC , rscope : & RS , span : Span , builtin_bounds : ty :: BuiltinBounds , region_bounds : & [ & ast :: Lifetime ] , trait_bounds : & [ Rc < ty :: TraitRef < ' tcx > > ] ) -> ty :: Region { match compute_opt_region_bound ( this . tcx ( ) , span , builtin_bounds , region_bounds , trait_bounds ) { Some ( r ) => r , None => { match rscope . default_region_bound ( span ) { Some ( r ) => { r } None => { this . tcx ( ) . sess . span_err ( span , format ! ( " " ) . as_slice ( ) ) ; ty :: ReStatic } } } } }
A version of `compute_opt_region_bound` for use where some region bound is required
(existential types, basically).
A version of ` compute_opt_region_bound ` for use where some region bound is required ( existential types basically ) .
this
&AC
rscope
&RS
span
Span
builtin_bounds
ty::BuiltinBounds
region_bounds
&[&ast::Lifetime]
trait_bounds
&[Rc<ty::TraitRef<'tcx>>]