rust/src/libsyntax/parse/lexer
Steve Klabnik 00e9ad1df8 Improve error message for char literals
If you try to put something that's bigger than a char into a char
literal, you get an error:

    fn main() {
        let c = 'ஶ்ரீ';
    }

    error: unterminated character constant:

This is a very compiler-centric message. Yes, it's technically
'unterminated', but that's not what you, the user did wrong.

Instead, this commit changes it to

    error: character literal may only contain one codepoint

As this actually tells you what went wrong.

Fixes #28851
2015-11-05 09:34:14 +01:00
..
comments.rs Start pushing panics outward in lexer. 2015-10-27 20:09:10 -07:00
mod.rs Improve error message for char literals 2015-11-05 09:34:14 +01:00