diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-09-15 10:59:11 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-09-16 09:13:43 +1000 |
| commit | 63ded0518a35ac9bd259bb961225eae7b4fa737c (patch) | |
| tree | 9b575ff74384c4c030af660da4314cd3ad79def4 /src/rustllvm/RustWrapper.cpp | |
| parent | f81f4964d26683c9a47ff4516a97ab84095d7bc9 (diff) | |
| download | rust-63ded0518a35ac9bd259bb961225eae7b4fa737c.tar.gz rust-63ded0518a35ac9bd259bb961225eae7b4fa737c.zip | |
Overhaul char_lit().
This commit does the following. - Removes parsing support for '\X12', '\u123456' and '\U12345678' char literals. These are no longer valid Rust and rejected by the lexer. (This strange-sounding situation occurs because the parser rescans char literals to compute their value.) - Rearranges the function so that all the escaped values are handled in a single `match`, and changes the error-handling to use vanilla assert!() and unwrap().
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
