From a7d3c49ad5a23d82278a8007bf8f7f3177d5f29e Mon Sep 17 00:00:00 2001 From: Aleksandr Pak <45790125+sancho20021@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:05:45 +1000 Subject: [PATCH] Add urls to rust lang reference --- compiler/rustc_hir/src/hir.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 87ff39a8294c0..539dee618a856 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -1632,6 +1632,9 @@ pub struct ConstBlock { } /// An expression. +/// For more details, see the [rust lang reference] +/// +/// [rust lang reference]: https://doc.rust-lang.org/reference/expressions.html #[derive(Debug, Clone, Copy, HashStable_Generic)] pub struct Expr<'hir> { pub hir_id: HirId, @@ -3146,6 +3149,9 @@ impl ItemId { /// An item /// /// The name might be a dummy name in case of anonymous items +/// For more details, see the [rust lang reference] +/// +/// [rust lang reference]: https://doc.rust-lang.org/reference/items.html #[derive(Debug, Clone, Copy, HashStable_Generic)] pub struct Item<'hir> { pub ident: Ident,