Skip to content

Commit fc6bd7e

Browse files
authored
Fix a link and create an implied internal link (rust-lang#2051)
1 parent fc68d40 commit fc6bd7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: src/memory.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
4949
- [`TraitRef`], typically passed by value – a **trait reference** consists of a reference to a trait
5050
along with its various type parameters (including `Self`), like `i32: Display` (here, the def-id
5151
would reference the `Display` trait, and the args would contain `i32`). Note that `def-id` is
52-
defined and discussed in depth in the `AdtDef and DefId` section.
52+
defined and discussed in depth in the [`AdtDef and DefId`][adtdefid] section.
5353
- [`Predicate`] defines something the trait system has to prove (see `traits` module).
5454

5555
[`GenericArgs`]: ./ty_module/generic_arguments.md#the-genericargs-type
56+
[adtdefid]: ./ty_module/generic_arguments.md#adtdef-and-defid
5657
[`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.TraitRef.html
5758
[`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
5859

Diff for: src/mir/drop-elaboration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ known to be uninitialized) to run these checks.
192192
[reference-drop]: https://doc.rust-lang.org/reference/destructors.html
193193
[drops]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_dataflow/src/elaborate_drops.rs
194194
[drops-shim]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_transform/src/shim.rs
195-
[drops-transform]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_dataflow/src/elaborate_drops.rs
195+
[drops-transform]: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_transform/src/elaborate_drops.rs

0 commit comments

Comments
 (0)