We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f320bf7 commit 3ddc6e2Copy full SHA for 3ddc6e2
src/doc/rustc-dev-guide/src/generics.md
@@ -10,7 +10,7 @@ In rustc this is done using the `SubstsRef` that we mentioned above (“substs
10
Conceptually, you can think of `SubstsRef` as a list of types that are to be substituted for the
11
generic type parameters of the ADT.
12
13
-`SubstsRef` is a type alias of `List<GenericArg<'tcx>>` (see [`List` rustdocs][list]).
+`SubstsRef` is a type alias of `&'tcx List<GenericArg<'tcx>>` (see [`List` rustdocs][list]).
14
[`GenericArg`] is essentially a space-efficient wrapper around [`GenericArgKind`], which is an enum
15
indicating what kind of generic the type parameter is (type, lifetime, or const). Thus, `SubstsRef`
16
is conceptually like a `&'tcx [GenericArgKind<'tcx>]` slice (but it is actually a `List`).
0 commit comments