diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2022-11-27 02:49:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 09:49:21 +0900 |
| commit | 3fb08acd43885828140bc1815bcc46eea93d5faa (patch) | |
| tree | 33214df1d77d40e9f065892d060ff224d75f42db /src/doc/rustc-dev-guide | |
| parent | 59b05a3c087e09c183bae1fe713b392503d99fd7 (diff) | |
| download | rust-3fb08acd43885828140bc1815bcc46eea93d5faa.tar.gz rust-3fb08acd43885828140bc1815bcc46eea93d5faa.zip | |
do an actual link to detect if it breaks in future (#1517)
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/queries/incremental-compilation-in-detail.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/src/queries/incremental-compilation-in-detail.md b/src/doc/rustc-dev-guide/src/queries/incremental-compilation-in-detail.md index 5b30f227ad3..abd2b0155e7 100644 --- a/src/doc/rustc-dev-guide/src/queries/incremental-compilation-in-detail.md +++ b/src/doc/rustc-dev-guide/src/queries/incremental-compilation-in-detail.md @@ -175,11 +175,12 @@ fn try_mark_green(tcx, current_node) -> bool { true } - -// Note: The actual implementation can be found in -// compiler/rustc_query_system/src/dep_graph/graph.rs ``` +> NOTE: +> The actual implementation can be found in +> [`compiler/rustc_query_system/src/dep_graph/graph.rs`][try_mark_green] + By using red-green marking we can avoid the devastating cumulative effect of having false positives during change detection. Whenever a query is executed in incremental mode, we first check if its already green. If not, we run @@ -187,7 +188,6 @@ in incremental mode, we first check if its already green. If not, we run invoke the query provider to re-compute the result. - ## The Real World: How Persistence Makes Everything Complicated The sections above described the underlying algorithm for incremental @@ -533,5 +533,5 @@ be reusable. See <https://github.com/rust-lang/rust/issues/47389> for more information. - [query-model]: ./query-evaluation-model-in-detail.html +[try_mark_green]: https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_query_system/dep_graph/graph.rs.html |
