about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-30 10:13:12 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-30 10:13:12 +0000
commit745c600617bc5dd1405cb53b1f79e5f421d62b0f (patch)
tree8bce243d67b4195373766de6fa17c553110e00da /compiler/rustc_parse/src/errors.rs
parent91bbdd927a5e53a2fe126304fe8adbedf339616c (diff)
downloadrust-745c600617bc5dd1405cb53b1f79e5f421d62b0f.tar.gz
rust-745c600617bc5dd1405cb53b1f79e5f421d62b0f.zip
Talk about `gen fn` in diagnostics about `gen fn`
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
-rw-r--r--compiler/rustc_parse/src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs
index c0e94d15da0..e5cd91a32a7 100644
--- a/compiler/rustc_parse/src/errors.rs
+++ b/compiler/rustc_parse/src/errors.rs
@@ -521,9 +521,9 @@ pub(crate) struct CatchAfterTry {
 }
 
 #[derive(Diagnostic)]
-#[diag(parse_gen_block)]
+#[diag(parse_gen_fn)]
 #[help]
-pub(crate) struct GenBlock {
+pub(crate) struct GenFn {
     #[primary_span]
     pub span: Span,
 }