Lower return types for gen fn to impl Iterator
This commit is contained in:
parent
bc0d10d4b0
commit
c104f3b629
7 changed files with 167 additions and 80 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue