Function rustc::middle::resolve_lifetime::insert_late_bound_lifetimes [−][src]
fn insert_late_bound_lifetimes(
map: &mut NamedRegionMap,
decl: &FnDecl,
generics: &Generics
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Detects late-bound lifetimes and inserts them into
map.late_bound
.
A region declared on a fn is late-bound if:
- it is constrained by an argument type;
- it does not appear in a where-clause.
"Constrained" basically means that it appears in any type but
not amongst the inputs to a projection. In other words, <&'a T as Trait<''b>>::Foo
does not constrain 'a
or 'b
.