Commit 95483e3
committed
auto merge of #12086 : huonw/rust/safe-json, r=kballard
The lexer and json were using `transmute(-1): char` as a sentinel value for EOF, which is invalid since `char` is strictly a unicode codepoint.
Fixing this allows for range asserts on chars since they always lie between 0 and 0x10FFFF.File tree
4 files changed
+301
-256
lines changed- src
- libextra
- librustc/middle/trans
- libsyntax/parse
4 files changed
+301
-256
lines changed
0 commit comments