From 50ef8006eb68682471894c99b49eb4e39b48c745 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Mon, 4 Dec 2023 13:43:38 -0800 Subject: Address code review feedback --- compiler/rustc_parse/src/parser/item.rs | 2 +- compiler/rustc_parse/src/parser/ty.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_parse/src/parser') diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 589fc46b722..8a987767dc4 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2544,7 +2544,7 @@ impl<'a> Parser<'a> { } } - // FIXME(eholk): add keyword recovery logic for genness + // FIXME(gen_blocks): add keyword recovery logic for genness if wrong_kw.is_some() && self.may_recover() diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index 73487f4af0e..068a99db4ae 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -612,7 +612,7 @@ impl<'a> Parser<'a> { if let Some(ast::CoroutineKind::Async { span, .. }) = coro_kind { self.sess.emit_err(FnPointerCannotBeAsync { span: whole_span, qualifier: span }); } - // FIXME(eholk): emit a similar error for `gen fn()` + // FIXME(gen_blocks): emit a similar error for `gen fn()` let decl_span = span_start.to(self.token.span); Ok(TyKind::BareFn(P(BareFnTy { ext, unsafety, generic_params: params, decl, decl_span }))) } -- cgit 1.4.1-3-g733a5