diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-07 01:36:59 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-08 12:13:27 +1100 |
| commit | 1dd18801216b26595a7b374e5dc8ee32eb577954 (patch) | |
| tree | 2c894b95cc8b8096df6a14698deae26e2f62051c /src/rustllvm/RustWrapper.cpp | |
| parent | e7908c0a6676db2dbf29c46ecf66d61a315e74cf (diff) | |
| download | rust-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
