diff options
| author | Eric Holk <ericholk@microsoft.com> | 2023-11-29 12:07:43 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2023-12-04 11:23:05 -0800 |
| commit | c104f3b629cfcac35802a899478756abf24ee7c1 (patch) | |
| tree | 3519b9e24059a25b90c68fc1c42697e7b11b2b8c /compiler/rustc_parse/src/parser | |
| parent | bc0d10d4b0fefccda6aae0338a1935d76314736b (diff) | |
| download | rust-c104f3b629cfcac35802a899478756abf24ee7c1.tar.gz rust-c104f3b629cfcac35802a899478756abf24ee7c1.zip | |
Lower return types for gen fn to impl Iterator
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 55f7310681f..4f01ab02c04 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2410,10 +2410,6 @@ impl<'a> Parser<'a> { } } - if let Gen::Yes { span, .. } = genness { - self.sess.emit_err(errors::GenFn { span }); - } - if !self.eat_keyword_case(kw::Fn, case) { // It is possible for `expect_one_of` to recover given the contents of // `self.expected_tokens`, therefore, do not use `self.unexpected()` which doesn't |
