Skip to content

Commit 70f20f4

Browse files
committed
Fix TyKind link issue
1 parent 9ba7f60 commit 70f20f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/memory.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ compiler doesn’t naively allocate from the buffer. Instead, we check if that
3232
type was already constructed. If it was, we just get the same pointer we had
3333
before, otherwise we make a fresh pointer. With this schema if we want to know
3434
if two types are the same, all we need to do is compare the pointers which is
35-
efficient. [`TyKind`] should never be constructed on the stack, and it would be unusable
35+
efficient. [`ty::TyKind`] should never be constructed on the stack, and it would be unusable
3636
if done so.
3737
You always allocate them from this arena and you always intern them so they are
3838
unique.
@@ -65,7 +65,6 @@ represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
6565
[`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
6666
[`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TraitRef.html
6767
[`ty::TyKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/sty/type.TyKind.html
68-
[`TyKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/ty_kind/enum.TyKind.html
6968
[traits]: ./traits/resolution.md
7069

7170
## The `tcx` and how it uses lifetimes

0 commit comments

Comments
 (0)