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-06-09 20:30:33 -0700
committerEsteban Küber <esteban@kuber.com.ar>2017-06-11 13:40:04 -0700
commita6d32153a6a70390e1c0c24907179d1e2a1f1ef9 (patch)
treee3ea0ded6219ea9c40a9385468c4bc387114125e /src/rustllvm/RustWrapper.cpp
parent13eb0ec9f17c89a3cb06a8f3ae627c076839fa52 (diff)
downloadrust-a6d32153a6a70390e1c0c24907179d1e2a1f1ef9.tar.gz
rust-a6d32153a6a70390e1c0c24907179d1e2a1f1ef9.zip
Learn to parse `a as usize < b`
Parsing `a as usize > b` always works, but `a as usize < b` was a
parsing error because the parser would think the `<` started a generic
type argument for `usize`. The parser now attempts to parse as before,
and if a DiagnosticError is returned, try to parse again as a type with
no generic arguments. If this fails, return the original
`DiagnosticError`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions