rust/src/libsyntax
bors 792a9f12cf Auto merge of #28887 - steveklabnik:gh28851, r=alexcrichton
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 that's larger than a char:

As this actually tells you what went wrong.

Fixes #28851
2015-11-05 10:30:02 +00:00
..
diagnostics Cleanup interfaces of Name, SyntaxContext and Ident 2015-09-24 23:05:02 +03:00
ext Allow indirect operands to be used as inputs for inline asm 2015-11-03 15:19:46 +00:00
parse Improve error message for char literals 2015-11-05 09:34:14 +01:00
print Remove PatWildMulti 2015-10-31 03:44:43 +03:00
util Update libsyntax tests. 2015-10-27 20:09:10 -07:00
abi.rs Port the standard crates to PNaCl/NaCl. 2015-10-28 17:23:28 -05:00
ast.rs Auto merge of #29291 - petrochenkov:privacy, r=alexcrichton 2015-11-02 23:38:49 +00:00
ast_util.rs Generalise associative operator parsing 2015-10-27 21:55:04 +02:00
attr.rs Refactor attr::Stability 2015-10-13 06:01:31 +03:00
codemap.rs Some cleanup of no longer used AST things 2015-10-09 11:53:42 +13:00
config.rs syntax/rustc_front: Simplify VariantData::fields 2015-10-25 18:33:51 +03:00
diagnostic.rs Make fatal errors more consistent. 2015-10-27 20:09:10 -07:00
entry.rs Cleanup interfaces of Name, SyntaxContext and Ident 2015-09-24 23:05:02 +03:00
feature_gate.rs syntax/rustc_front: Simplify VariantData::fields 2015-10-25 18:33:51 +03:00
fold.rs Remove PatWildMulti 2015-10-31 03:44:43 +03:00
lib.rs Make fatal errors more consistent. 2015-10-27 20:09:10 -07:00
owned_slice.rs Fill in some missing parts in the default AST visitor 2015-09-28 23:06:43 +03:00
ptr.rs syntax: remove #![feature(box_syntax, box_patterns)] 2015-04-21 10:07:48 -07:00
show_span.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
std_inject.rs Stop re-exporting AttrStyle's variants and rename them. 2015-10-01 18:03:34 +02:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Rollup merge of #28033 - Manishearth:compilerexpn, r=eddyb 2015-08-28 03:38:37 +05:30
visit.rs Remove PatWildMulti 2015-10-31 03:44:43 +03:00