about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorMartin Liška <martin.liska@hey.com>2024-11-04 09:24:05 +0100
committerGitHub <noreply@github.com>2024-11-04 16:24:05 +0800
commit45754f3ee276e407912d51ca61a25d97bd49df68 (patch)
tree20240c76daf00db411285755f018d0cdc5329999 /src/doc
parent0557ec57b7966b4862265252a7465df2ee6ec72c (diff)
downloadrust-45754f3ee276e407912d51ca61a25d97bd49df68.tar.gz
rust-45754f3ee276e407912d51ca61a25d97bd49df68.zip
Fix broken links (#2123)
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md2
-rw-r--r--src/doc/rustc-dev-guide/src/memory.md3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md b/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
index 2cd0b4b51cb..8252641e6be 100644
--- a/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
+++ b/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
@@ -157,7 +157,7 @@ The `InstrumentCoverage` MIR pass is documented in
 [mir-passes]: mir/passes.md
 [mir-instrument-coverage]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_mir_transform/src/coverage
 [`FunctionCoverageInfo`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/coverage/struct.FunctionCoverageInfo.html
-[code-region]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/coverage/struct.CodeRegion.html
+[code-region]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_llvm/coverageinfo/ffi/struct.CodeRegion.html
 [`CoverageKind::CounterIncrement`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/coverage/enum.CoverageKind.html#variant.CounterIncrement
 [coverage-statement]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.StatementKind.html#variant.Coverage
 [instrument-coverage-pass-details]: #implementation-details-of-the-instrumentcoverage-mir-pass
diff --git a/src/doc/rustc-dev-guide/src/memory.md b/src/doc/rustc-dev-guide/src/memory.md
index 67540924d6a..1e030ff45a7 100644
--- a/src/doc/rustc-dev-guide/src/memory.md
+++ b/src/doc/rustc-dev-guide/src/memory.md
@@ -32,7 +32,7 @@ compiler doesn’t naively allocate from the buffer.  Instead, we check if that
 type was already constructed. If it was, we just get the same pointer we had
 before, otherwise we make a fresh pointer. With this schema if we want to know
 if two types are the same, all we need to do is compare the pointers which is
-efficient. [`TyKind`] should never be constructed on the stack, and it would be unusable
+efficient. [`ty::TyKind`] should never be constructed on the stack, and it would be unusable
 if done so.
 You always allocate them from this arena and you always intern them so they are
 unique.
@@ -65,7 +65,6 @@ represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
 [`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
 [`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TraitRef.html
 [`ty::TyKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/sty/type.TyKind.html
-[`TyKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/ty_kind/enum.TyKind.html
 [traits]: ./traits/resolution.md
 
 ## The `tcx` and how it uses lifetimes