diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-06-09 20:30:33 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-06-11 13:40:04 -0700 |
| commit | a6d32153a6a70390e1c0c24907179d1e2a1f1ef9 (patch) | |
| tree | e3ea0ded6219ea9c40a9385468c4bc387114125e /src/rustllvm/RustWrapper.cpp | |
| parent | 13eb0ec9f17c89a3cb06a8f3ae627c076839fa52 (diff) | |
| download | rust-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
