1
Fork 0

Create a specific ObjectLifetimeDefault enum.

This commit is contained in:
Camille GILLOT 2022-05-24 12:51:59 +02:00
parent 39bc74e8b8
commit 236ccce79e
6 changed files with 58 additions and 83 deletions

View file

@ -1579,7 +1579,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(_: DefId) -> Option<&'tcx [ObjectLifetimeDefault]> {
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)