about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2016-09-15 10:59:11 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2016-09-16 09:13:43 +1000
commit63ded0518a35ac9bd259bb961225eae7b4fa737c (patch)
tree9b575ff74384c4c030af660da4314cd3ad79def4 /src/rustllvm/RustWrapper.cpp
parentf81f4964d26683c9a47ff4516a97ab84095d7bc9 (diff)
downloadrust-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