]> git.lizzy.rs Git - rust.git/commit
Continue parsing function after finding `...` arg
authorEsteban Küber <esteban@kuber.com.ar>
Mon, 12 Feb 2018 06:10:35 +0000 (22:10 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Mon, 12 Feb 2018 06:10:35 +0000 (22:10 -0800)
commitf7cabc6550f23d8a761abf737763a0375a0ac41a
treeb4b2439df39240ecec0ec0a65ef4c6d42395b2e1
parentd0f1f4281632386ab0e3f35eed87fac0e5b2d771
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.
src/libsyntax/parse/parser.rs
src/test/ui/invalid-variadic-function.rs [new file with mode: 0644]
src/test/ui/invalid-variadic-function.stderr [new file with mode: 0644]