Skip to content

Commit

Permalink
Add urls to rust lang reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sancho20021 authored Jun 12, 2024
1 parent 76c7382 commit a7d3c49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/rustc_hir/src/hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a7d3c49

Please sign in to comment.