about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-11-16 08:36:33 +0900
committerJoshua Nelson <github@jyn.dev>2021-11-24 10:23:07 -0500
commitfbe824dda04a36d1c03f21f9d807580de855fd18 (patch)
treecd33b190dd123d3dd505af33619c78472c1f85e5 /src/doc/rustc-dev-guide
parentbb80ff17da455133588c7b903c02a89901300452 (diff)
downloadrust-fbe824dda04a36d1c03f21f9d807580de855fd18.tar.gz
rust-fbe824dda04a36d1c03f21f9d807580de855fd18.zip
Fix some links
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/backend/libs-and-metadata.md5
-rw-r--r--src/doc/rustc-dev-guide/src/building/bootstrapping.md2
-rw-r--r--src/doc/rustc-dev-guide/src/constants.md2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/src/backend/libs-and-metadata.md b/src/doc/rustc-dev-guide/src/backend/libs-and-metadata.md
index d2cf8b6929c..5e005c965ed 100644
--- a/src/doc/rustc-dev-guide/src/backend/libs-and-metadata.md
+++ b/src/doc/rustc-dev-guide/src/backend/libs-and-metadata.md
@@ -107,12 +107,11 @@ The hash includes a variety of elements:
   Disambiguator](#crate-disambiguator), and all CLI options marked with
   `[TRACKED]`).
 
-See [`finalize_and_compute_crate_hash`] for where the hash is actually
-computed.
+See [`compute_hir_hash`] for where the hash is actually computed.
 
 [SVH]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_data_structures/svh/struct.Svh.html
 [incremental compilation]: ../queries/incremental-compilation.md
-[`finalize_and_compute_crate_hash`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/collector/struct.NodeCollector.html#method.finalize_and_compute_crate_hash
+[`compute_hir_hash`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast_lowering/struct.LoweringContext.html#method.compute_hir_hash
 
 ### Stable Crate Id
 
diff --git a/src/doc/rustc-dev-guide/src/building/bootstrapping.md b/src/doc/rustc-dev-guide/src/building/bootstrapping.md
index fc1ad6c0002..460776e51a0 100644
--- a/src/doc/rustc-dev-guide/src/building/bootstrapping.md
+++ b/src/doc/rustc-dev-guide/src/building/bootstrapping.md
@@ -56,7 +56,7 @@ because one must first build the new compiler with an older compiler
 and then use that to build the new compiler with itself.
 For development, you usually only want the `stage1` compiler,
 which you can build with `./x.py build library/std`.
-See [Building the Compiler](/building/how-to-build-and-run.html#building-the-compiler).
+See [Building the Compiler](./how-to-build-and-run.html#building-the-compiler).
 
 ### Stage 3
 
diff --git a/src/doc/rustc-dev-guide/src/constants.md b/src/doc/rustc-dev-guide/src/constants.md
index 137351c22f8..30c0da736f9 100644
--- a/src/doc/rustc-dev-guide/src/constants.md
+++ b/src/doc/rustc-dev-guide/src/constants.md
@@ -39,7 +39,7 @@ why the array length in `foo<const N: usize>() -> [u8; N + 1]` can use `N`.
 
 Without any manual adjustments, this causes us to include parameters even if
 the constant doesn't use them in any way. This can cause
-[some interesting errors](pcg-unused-substs) and breaks some already stable code.
+[some interesting errors][pcg-unused-substs] and breaks some already stable code.
 
 To deal with this, we intend to look at the generic parameters explicitly mentioned
 by the constants and then search the predicates of its parents to figure out which