diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-30 10:13:12 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-30 10:13:12 +0000 |
| commit | 745c600617bc5dd1405cb53b1f79e5f421d62b0f (patch) | |
| tree | 8bce243d67b4195373766de6fa17c553110e00da /compiler/rustc_parse/src/parser | |
| parent | 91bbdd927a5e53a2fe126304fe8adbedf339616c (diff) | |
| download | rust-745c600617bc5dd1405cb53b1f79e5f421d62b0f.tar.gz rust-745c600617bc5dd1405cb53b1f79e5f421d62b0f.zip | |
Talk about `gen fn` in diagnostics about `gen fn`
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index a9f456d64cd..55ad3f42938 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2372,7 +2372,7 @@ impl<'a> Parser<'a> { } if let Gen::Yes { span, .. } = genness { - self.sess.emit_err(errors::GenBlock { span }); + self.sess.emit_err(errors::GenFn { span }); } if !self.eat_keyword_case(kw::Fn, case) { |
