about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-09-22 09:56:40 +0200
committerGitHub <noreply@github.com>2018-09-22 09:56:40 +0200
commit7c34cf7ee3e70bbd6b1f0d8d2bd6931d75989aed (patch)
tree64a9f99b64bee235afd611aba8a512740ce25269 /src/rustllvm/RustWrapper.cpp
parent0bf52b3a5be7f0b6aa38779b0d78d5469b93494f (diff)
parent9784d3543f524f142aae52da9d2a6ce1eb9d702a (diff)
downloadrust-7c34cf7ee3e70bbd6b1f0d8d2bd6931d75989aed.tar.gz
rust-7c34cf7ee3e70bbd6b1f0d8d2bd6931d75989aed.zip
Rollup merge of #54415 - petrochenkov:norollback, r=estebank
parser: Tweak function parameter parsing to avoid rollback on succesfull path

Since rollback is not perfect and may e.g. leave non-fatal errors after it, we need to make sure compilation fails if it happens.
So in particular case of `fn parse_arg_general` we need to parse the "good" `TYPE` first and only then rollback and recover erroneous `PAT: TYPE` if necessary.
Found when working on https://github.com/rust-lang/rfcs/pull/2544#issuecomment-423293222.

r? @ghost
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions