Skip to content

Commit a6aa5bd

Browse files
Rollup merge of #163990 - ada4a:push-prrkrkxnkytv, r=khyperia
`AliasConstKind`: add intra-doc links to `AliasTyKind` It's a bit silly to explicitly refer to that type without offering an easy way to jump to its definition. r? @khyperia
2 parents a99c5e1 + 45261aa commit a6aa5bd

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎compiler/rustc_type_ir/src/const_kind.rs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ impl<I: Interner> AliasConst<I> {
9494
}
9595
}
9696

97-
/// AliasConstKind is extremely similar to AliasTyKind, and likely should be reasoned about
98-
/// and handled in very similar ways. The documentation for AliasTyKind/etc. may be helpful when
99-
/// learning about AliasConstKind.
97+
/// `AliasConstKind` is extremely similar to [`AliasTyKind`], and likely should be reasoned about
98+
/// and handled in very similar ways. The documentation for [`AliasTyKind`]/etc. may be helpful when
99+
/// learning about `AliasConstKind`.
100+
///
101+
/// [`AliasTyKind`]: crate::AliasTyKind
100102
#[derive_where(Clone, Copy, Hash, PartialEq, Debug; I: Interner)]
101103
#[derive(TypeVisitable_Generic, GenericTypeVisitable, TypeFoldable_Generic, Lift_Generic)]
102104
#[cfg_attr(

0 commit comments

Comments
 (0)