about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-22 15:48:32 +0100
committerGitHub <noreply@github.com>2020-03-22 15:48:32 +0100
commitea44d71f9bc76d2136e20553259d43f55f282db1 (patch)
tree792b0ffe15867a29de688c9a94547b8bea5e8ff7 /src/rustllvm/RustWrapper.cpp
parent9890d9a9d0e76cecbb6cfad41c0901f248430877 (diff)
parent4d30b92e3e57cf606a25c807a9e4ab2b7a4d1064 (diff)
downloadrust-ea44d71f9bc76d2136e20553259d43f55f282db1.tar.gz
rust-ea44d71f9bc76d2136e20553259d43f55f282db1.zip
Rollup merge of #70209 - Centril:recover-quant-closure, r=petrochenkov
parser: recover on `for<'a> |...| body` closures

When encountering `for` and `<` is 1 token ahead, interpret this as an explicitly quantified generic closure and recover, rather than attempting to parse a `for` loop. This provides both improved diagnostics as well as an insurance policy for the ability to use this as the syntax for generic closures in the future.

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