]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #48154 - estebank:issue-31481, r=nikomatsakis
authorkennytm <kennytm@gmail.com>
Wed, 14 Feb 2018 08:14:41 +0000 (16:14 +0800)
committerkennytm <kennytm@gmail.com>
Wed, 14 Feb 2018 10:25:21 +0000 (18:25 +0800)
commitdcb15269f676f5188f048d4ba014c402a1378086
tree4141972de29e8c85b6d6f8c6ebc1c68d421686ff
parentc4b211bdba5c58104c66f567c22720819636bbf9
parentf7cabc6550f23d8a761abf737763a0375a0ac41a
Rollup merge of #48154 - estebank:issue-31481, r=nikomatsakis

Continue parsing function after finding `...` arg

When encountering a variadic argument in a function definition that
doesn't accept it, if immediately after there's a closing paren,
continue parsing as normal. Otherwise keep current behavior of emitting
error and stopping.

Fix #31481.