about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-07 01:36:59 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-02-08 12:13:27 +1100
commit1dd18801216b26595a7b374e5dc8ee32eb577954 (patch)
tree2c894b95cc8b8096df6a14698deae26e2f62051c /src/rustllvm/RustWrapper.cpp
parente7908c0a6676db2dbf29c46ecf66d61a315e74cf (diff)
downloadrust-1dd18801216b26595a7b374e5dc8ee32eb577954.tar.gz
rust-1dd18801216b26595a7b374e5dc8ee32eb577954.zip
syntax: convert the lexer to use Option<char> over transmute(-1).
The transmute was unsound.

There are many instances of .unwrap_or('\x00') for "ignoring" EOF which
either do not make the situation worse than it was (well, actually make
it better, since it's easy to grep for places that don't handle EOF) or
can never ever be read.

Fixes #8971.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions