Skip to content

Commit 03b5af2

Browse files
committed
Add some lifetime bounds.
1 parent 2db7f60 commit 03b5af2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/ty/query/plumbing.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub(super) struct JobOwner<'tcx, Q: QueryDescription<'tcx>> {
129129
id: QueryJobId,
130130
}
131131

132-
impl<'tcx, Q: QueryDescription<'tcx>> JobOwner<'tcx, Q> {
132+
impl<'tcx, Q: QueryDescription<'tcx> + 'tcx> JobOwner<'tcx, Q> {
133133
/// Either gets a `JobOwner` corresponding the query, allowing us to
134134
/// start executing the query, or returns with the result of the query.
135135
/// This function assumes that `try_get_cached` is already called and returned `lookup`.
@@ -477,7 +477,7 @@ impl<'tcx> TyCtxt<'tcx> {
477477
}
478478

479479
#[inline(always)]
480-
pub(super) fn try_execute_query<Q: QueryDescription<'tcx>>(
480+
pub(super) fn try_execute_query<Q: QueryDescription<'tcx> + 'tcx>(
481481
self,
482482
span: Span,
483483
key: Q::Key,
@@ -641,7 +641,7 @@ impl<'tcx> TyCtxt<'tcx> {
641641
}
642642

643643
#[inline(always)]
644-
fn force_query_with_job<Q: QueryDescription<'tcx>>(
644+
fn force_query_with_job<Q: QueryDescription<'tcx> + 'tcx>(
645645
self,
646646
key: Q::Key,
647647
job: JobOwner<'tcx, Q>,

0 commit comments

Comments
 (0)