Use a slice for object_lifetime_defaults.
This commit is contained in:
parent
f72f15ca28
commit
e52131efad
4 changed files with 74 additions and 87 deletions
|
@ -1490,9 +1490,7 @@ rustc_queries! {
|
|||
/// for each parameter if a trait object were to be passed for that parameter.
|
||||
/// For example, for `struct Foo<'a, T, U>`, this would be `['static, 'static]`.
|
||||
/// For `struct Foo<'a, T: 'a, U>`, this would instead be `['a, 'static]`.
|
||||
query object_lifetime_defaults_map(_: LocalDefId)
|
||||
-> Option<Vec<ObjectLifetimeDefault>> {
|
||||
storage(ArenaCacheSelector<'tcx>)
|
||||
query object_lifetime_defaults(_: LocalDefId) -> Option<&'tcx [ObjectLifetimeDefault]> {
|
||||
desc { "looking up lifetime defaults for a region on an item" }
|
||||
}
|
||||
query late_bound_vars_map(_: LocalDefId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue