diff options
| author | Aleksandr Pak <45790125+sancho20021@users.noreply.github.com> | 2024-06-12 16:05:45 +1000 |
|---|---|---|
| committer | Aleksandr Pak <aleksandr.vl.pak@gmail.com> | 2024-06-13 11:02:08 +1000 |
| commit | d1fa19ce93c9f79fdd123e785599a84ea8925c7c (patch) | |
| tree | 2e9db0227109ae8443023e6aa635e171691ec78e | |
| parent | 76c73827dcd0b363e60b22c3cef64bde4171bf17 (diff) | |
| download | rust-d1fa19ce93c9f79fdd123e785599a84ea8925c7c.tar.gz rust-d1fa19ce93c9f79fdd123e785599a84ea8925c7c.zip | |
Add urls to rust lang reference
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 87ff39a8294..d948945bf42 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -1632,6 +1632,13 @@ pub struct ConstBlock { } /// An expression. +/// +/// For more details, see the [rust lang reference]. +/// Note that the reference does not document nightly-only features. +/// There may be also slight differences in the names and representation of AST nodes between +/// the compiler and the 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 +3153,13 @@ impl ItemId { /// An item /// /// The name might be a dummy name in case of anonymous items +/// +/// For more details, see the [rust lang reference]. +/// Note that the reference does not document nightly-only features. +/// There may be also slight differences in the names and representation of AST nodes between +/// the compiler and the 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, |
