about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-11-21 06:49:15 -0800
committerEsteban Küber <esteban@kuber.com.ar>2017-11-24 07:34:31 -0800
commit7c0387e36a1dab95492de61a2f26262a4526c286 (patch)
tree074202e3afa04e46273552fa09b80cb9f41f24ef /src/rustllvm/RustWrapper.cpp
parent547873aa54e787cbb7c266fb6e7337ea4e8a9331 (diff)
downloadrust-7c0387e36a1dab95492de61a2f26262a4526c286.tar.gz
rust-7c0387e36a1dab95492de61a2f26262a4526c286.zip
Do not rewind parser and ignore following blocks
When encountering `pub ident`, attempt to identify the code that comes
afterwards, wether it is a brace block (assume it is a struct), a paren
list followed by a colon (assume struct) or a paren list followed by a
block (assume a fn). Consume those blocks to avoid any further parser
errors and return a `Placeholder` item in order to allow the parser to
continue. In the case of unenclosed blocks, the behavior is the same as
it is currently: no further errors are processed.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions