about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorPrashanth Mundkur <103736+pmundkur@users.noreply.github.com>2024-09-08 12:15:41 -0400
committerGitHub <noreply@github.com>2024-09-09 00:15:41 +0800
commitf14d97e53715468018e2bc92b8fc4b09d7bc9a32 (patch)
tree2f52aec1505be5ea221560ead1136f400e27d4b5 /src/doc/rustc-dev-guide
parent544c1d4b0aff7d970a652a53e8d508760f37f7f5 (diff)
downloadrust-f14d97e53715468018e2bc92b8fc4b09d7bc9a32.tar.gz
rust-f14d97e53715468018e2bc92b8fc4b09d7bc9a32.zip
Fix a link and create an implied internal link (#2051)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/memory.md3
-rw-r--r--src/doc/rustc-dev-guide/src/mir/drop-elaboration.md2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/memory.md b/src/doc/rustc-dev-guide/src/memory.md
index b45a2a0c926..b4565856922 100644
--- a/src/doc/rustc-dev-guide/src/memory.md
+++ b/src/doc/rustc-dev-guide/src/memory.md
@@ -49,10 +49,11 @@ represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
 - [`TraitRef`], typically passed by value – a **trait reference** consists of a reference to a trait
   along with its various type parameters (including `Self`), like `i32: Display` (here, the def-id
   would reference the `Display` trait, and the args would contain `i32`). Note that `def-id` is
-  defined and discussed in depth in the `AdtDef and DefId` section.
+  defined and discussed in depth in the [`AdtDef and DefId`][adtdefid] section.
 - [`Predicate`] defines something the trait system has to prove (see `traits` module).
 
 [`GenericArgs`]: ./ty_module/generic_arguments.md#the-genericargs-type
+[adtdefid]: ./ty_module/generic_arguments.md#adtdef-and-defid
 [`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.TraitRef.html
 [`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
 
diff --git a/src/doc/rustc-dev-guide/src/mir/drop-elaboration.md b/src/doc/rustc-dev-guide/src/mir/drop-elaboration.md
index 0869e0e3d0a..3b321fd44d1 100644
--- a/src/doc/rustc-dev-guide/src/mir/drop-elaboration.md
+++ b/src/doc/rustc-dev-guide/src/mir/drop-elaboration.md
@@ -192,4 +192,4 @@ known to be uninitialized) to run these checks.
 [reference-drop]: https://doc.rust-lang.org/reference/destructors.html
 [drops]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_dataflow/src/elaborate_drops.rs
 [drops-shim]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_transform/src/shim.rs
-[drops-transform]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_dataflow/src/elaborate_drops.rs
+[drops-transform]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_transform/src/elaborate_drops.rs