Skip to content

Commit a7d3c49

Browse files
authored
Add urls to rust lang reference
1 parent 76c7382 commit a7d3c49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_hir/src/hir.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1632,6 +1632,9 @@ pub struct ConstBlock {
16321632
}
16331633

16341634
/// An expression.
1635+
/// For more details, see the [rust lang reference]
1636+
///
1637+
/// [rust lang reference]: https://doc.rust-lang.org/reference/expressions.html
16351638
#[derive(Debug, Clone, Copy, HashStable_Generic)]
16361639
pub struct Expr<'hir> {
16371640
pub hir_id: HirId,
@@ -3146,6 +3149,9 @@ impl ItemId {
31463149
/// An item
31473150
///
31483151
/// The name might be a dummy name in case of anonymous items
3152+
/// For more details, see the [rust lang reference]
3153+
///
3154+
/// [rust lang reference]: https://doc.rust-lang.org/reference/items.html
31493155
#[derive(Debug, Clone, Copy, HashStable_Generic)]
31503156
pub struct Item<'hir> {
31513157
pub ident: Ident,

0 commit comments

Comments
 (0)