about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-19 17:54:43 +0200
committerGitHub <noreply@github.com>2023-04-19 17:54:43 +0200
commitb59658c990557e654fac9fd80902f9d6891a665d (patch)
treeb40f67abed30022a33aab889db5a525901c6567a
parent770f6cd254ab3a8df825ed87217fce308f076fb7 (diff)
parent0b6b72e19827d1e031ba7501c09d185dd9aa2ff2 (diff)
downloadrust-b59658c990557e654fac9fd80902f9d6891a665d.tar.gz
rust-b59658c990557e654fac9fd80902f9d6891a665d.zip
Rollup merge of #110540 - safinaskar:patch-1, r=WaffleLapkin
Fix wrong comment in rustc_hir/src/hir.rs
-rw-r--r--compiler/rustc_hir/src/hir.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs
index fb0c087bfb4..486718ea6a0 100644
--- a/compiler/rustc_hir/src/hir.rs
+++ b/compiler/rustc_hir/src/hir.rs
@@ -1960,7 +1960,7 @@ pub enum ExprKind<'hir> {
     Lit(&'hir Lit),
     /// A cast (e.g., `foo as f64`).
     Cast(&'hir Expr<'hir>, &'hir Ty<'hir>),
-    /// A type reference (e.g., `Foo`).
+    /// A type ascription (e.g., `x: Foo`). See RFC 3307.
     Type(&'hir Expr<'hir>, &'hir Ty<'hir>),
     /// Wraps the expression in a terminating scope.
     /// This makes it semantically equivalent to `{ let _t = expr; _t }`.