mozilla/rust — pull request #12086 by huonw (2014-02-07 10:44:45+00:00)
Title: Fix the codebase's use of `char`s & put range asserts on `char`s

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.