mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Move reconstruct test inwards.
This commit is contained in:
parent
c95a5682f7
commit
f3ed997254
@ -753,7 +753,10 @@ where
|
||||
CTX: QueryContext,
|
||||
{
|
||||
debug_assert!(!query.anon);
|
||||
debug_assert!(<C::Key as DepNodeParams<CTX::DepContext>>::can_reconstruct_query_key());
|
||||
|
||||
if !<C::Key as DepNodeParams<CTX::DepContext>>::can_reconstruct_query_key() {
|
||||
return false;
|
||||
}
|
||||
|
||||
let key = if let Some(key) =
|
||||
<C::Key as DepNodeParams<CTX::DepContext>>::recover(*tcx.dep_context(), &dep_node)
|
||||
@ -840,9 +843,5 @@ where
|
||||
return false;
|
||||
}
|
||||
|
||||
if !<Q::Key as DepNodeParams<CTX::DepContext>>::can_reconstruct_query_key() {
|
||||
return false;
|
||||
}
|
||||
|
||||
force_query_impl(tcx, Q::query_state(tcx), Q::query_cache(tcx), *dep_node, &Q::VTABLE)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user