diff options
| author | bors <bors@rust-lang.org> | 2017-06-16 03:31:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-06-16 03:31:09 +0000 |
| commit | 44eeb2109b249e7496ca0897ce509ced2e3b6c81 (patch) | |
| tree | 12e53491ade7b4815bc59f7b83e29eda605a5685 /src/rustllvm/RustWrapper.cpp | |
| parent | a3114961a1c6b8a16cd06a854d585377ac576d47 (diff) | |
| parent | ad260ffc884477686e8f6f52c97a417bf99e2f19 (diff) | |
| download | rust-44eeb2109b249e7496ca0897ce509ced2e3b6c81.tar.gz rust-44eeb2109b249e7496ca0897ce509ced2e3b6c81.zip | |
Auto merge of #42578 - estebank:recover-binop, r=nikomatsakis
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`. Fix #22644.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
