]> git.lizzy.rs Git - rust.git/commit
Make all query forcing go through try_execute_query.
authorCamille GILLOT <gillot.camille@gmail.com>
Mon, 2 Nov 2020 20:27:36 +0000 (21:27 +0100)
committerCamille GILLOT <gillot.camille@gmail.com>
Sun, 22 Aug 2021 18:23:29 +0000 (20:23 +0200)
commit283a8e14453c9f1532087caa1aa08743c8f4c58d
treeadcc55a3871d0df2b4e910823446c5d1313937a6
parent45d6decc19b419448961fdb5ba3e062c9267a393
Make all query forcing go through try_execute_query.

try_execute_query is now able to centralize the path for query
get/ensure/force.

try_execute_query now takes the dep_node as a parameter, so it can
accommodate `force`. This dep_node is an Option to avoid computing it in
the `get` fast path.

try_execute_query now returns both the result and the dep_node_index to
allow the caller to handle the dep graph.

The caller is responsible for marking the dependency.
compiler/rustc_query_system/src/query/plumbing.rs