Skip to content

Commit d1fa19c

Browse files
committed
Add urls to rust lang reference
1 parent 76c7382 commit d1fa19c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

compiler/rustc_hir/src/hir.rs

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

16341634
/// An expression.
1635+
///
1636+
/// For more details, see the [rust lang reference].
1637+
/// Note that the reference does not document nightly-only features.
1638+
/// There may be also slight differences in the names and representation of AST nodes between
1639+
/// the compiler and the reference.
1640+
///
1641+
/// [rust lang reference]: https://doc.rust-lang.org/reference/expressions.html
16351642
#[derive(Debug, Clone, Copy, HashStable_Generic)]
16361643
pub struct Expr<'hir> {
16371644
pub hir_id: HirId,
@@ -3146,6 +3153,13 @@ impl ItemId {
31463153
/// An item
31473154
///
31483155
/// The name might be a dummy name in case of anonymous items
3156+
///
3157+
/// For more details, see the [rust lang reference].
3158+
/// Note that the reference does not document nightly-only features.
3159+
/// There may be also slight differences in the names and representation of AST nodes between
3160+
/// the compiler and the reference.
3161+
///
3162+
/// [rust lang reference]: https://doc.rust-lang.org/reference/items.html
31493163
#[derive(Debug, Clone, Copy, HashStable_Generic)]
31503164
pub struct Item<'hir> {
31513165
pub ident: Ident,

0 commit comments

Comments
 (0)