Skip to content

Commit c62f870

Browse files
hycinth22camelid
andauthored
Fix dead links (rust-lang#1988)
* fix dead links in memory.md * fix dead links in ty_module/generic_arguments.md * Update src/memory.md use .md instead of .html for self-links Co-authored-by: Noah Lev <[email protected]> --------- Co-authored-by: Noah Lev <[email protected]>
1 parent 06a3f3b commit c62f870

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/memory.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
5252
defined and discussed in depth in the `AdtDef and DefId` section.
5353
- [`Predicate`] defines something the trait system has to prove (see `traits` module).
5454

55-
[`GenericArgs`]: ./generic_arguments.html#GenericArgs
56-
[`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TraitRef.html
55+
[`GenericArgs`]: ./ty_module/generic_arguments.md#the-genericargs-type
56+
[`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.TraitRef.html
5757
[`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
5858

5959
[`ty::TyKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/sty/type.TyKind.html

Diff for: src/ty_module/generic_arguments.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ for the generic parameters. In our example of `MyStruct<u32>`, we would end up
3737
### **`AdtDef` and `DefId`**
3838

3939
For every type defined in the source code, there is a unique `DefId` (see [this
40-
chapter](hir.md#identifiers-in-the-hir)). This includes ADTs and generics. In the `MyStruct<T>`
40+
chapter](../hir.md#identifiers-in-the-hir)). This includes ADTs and generics. In the `MyStruct<T>`
4141
definition we gave above, there are two `DefId`s: one for `MyStruct` and one for `T`. Notice that
4242
the code above does not generate a new `DefId` for `u32` because it is not defined in that code (it
4343
is only referenced).
@@ -111,7 +111,7 @@ fn deal_with_generic_arg<'tcx>(generic_arg: GenericArg<'tcx>) -> GenericArg<'tcx
111111

112112
[list]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.List.html
113113
[`GenericArg`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.GenericArg.html
114-
[`GenericArgKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.GenericArgKind.html
114+
[`GenericArgKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.GenericArgKind.html
115115
[`GenericArgs`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.GenericArgs.html
116116

117117
So pulling it all together:

0 commit comments

Comments
 (0)