X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_query_system%2Fsrc%2Fquery%2Fplumbing.rs;h=638336224ef1a0c703e5ccda6ad47b6b76c8ff8b;hb=d4598406336a1100786ff15708b48a51768ec235;hp=ffc413d15f52b0528d7c294b554be089940df5fc;hpb=8ddbfadda0cd0b2cde11bd60d1e3785657841fc0;p=rust.git diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs index ffc413d15f5..638336224ef 100644 --- a/compiler/rustc_query_system/src/query/plumbing.rs +++ b/compiler/rustc_query_system/src/query/plumbing.rs @@ -121,20 +121,17 @@ struct JobOwner<'tcx, K, D: DepKind> #[cold] #[inline(never)] -fn mk_cycle( +fn mk_cycle( qcx: Qcx, cycle_error: CycleError, handler: HandleCycleError, - cache: &dyn crate::query::QueryStorage, ) -> R where Qcx: QueryContext + crate::query::HasDepContext, - V: std::fmt::Debug + Value, - R: Copy, + R: std::fmt::Debug + Value, { let error = report_cycle(qcx.dep_context().sess(), &cycle_error); - let value = handle_cycle_error(*qcx.dep_context(), &cycle_error, error, handler); - cache.store_nocache(value) + handle_cycle_error(*qcx.dep_context(), &cycle_error, error, handler) } fn handle_cycle_error( @@ -399,7 +396,7 @@ fn try_execute_query( (result, Some(dep_node_index)) } TryGetJob::Cycle(error) => { - let result = mk_cycle(qcx, error, Q::HANDLE_CYCLE_ERROR, cache); + let result = mk_cycle(qcx, error, Q::HANDLE_CYCLE_ERROR); (result, None) } #[cfg(parallel_compiler)]