Skip to content

Commit b59658c

Browse files
authored
Rollup merge of #110540 - safinaskar:patch-1, r=WaffleLapkin
Fix wrong comment in rustc_hir/src/hir.rs
2 parents 770f6cd + 0b6b72e commit b59658c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir/src/hir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ pub enum ExprKind<'hir> {
19601960
Lit(&'hir Lit),
19611961
/// A cast (e.g., `foo as f64`).
19621962
Cast(&'hir Expr<'hir>, &'hir Ty<'hir>),
1963-
/// A type reference (e.g., `Foo`).
1963+
/// A type ascription (e.g., `x: Foo`). See RFC 3307.
19641964
Type(&'hir Expr<'hir>, &'hir Ty<'hir>),
19651965
/// Wraps the expression in a terminating scope.
19661966
/// This makes it semantically equivalent to `{ let _t = expr; _t }`.

0 commit comments

Comments
 (0)