rust/src/libsyntax
bors 5e1a691125 auto merge of #9613 : jld/rust/enum-discrim-size.r0, r=alexcrichton
Allows an enum with a discriminant to use any of the primitive integer types to store it.  By default the smallest usable type is chosen, but this can be overridden with an attribute: `#[repr(int)]` etc., or `#[repr(C)]` to match the target's C ABI for the equivalent C enum.

Also adds a lint pass for using non-FFI safe enums in extern declarations, checks that specified discriminants can be stored in the specified type if any, and fixes assorted code that was assuming int.
2013-10-30 00:31:23 -07:00
..
ext Field identifiers now include specific spans (Closes #8263). 2013-10-28 22:57:34 -07:00
parse auto merge of #10134 : reedlepee123/rust/priv_fields, r=brson 2013-10-29 15:11:30 -07:00
print librustc: Implement the proc type as sugar for ~once fn and proc 2013-10-29 10:34:17 -07:00
util Remove specific errors for very old obsolete syntax 2013-10-04 07:09:28 +02:00
abi.rs Drop the '2' suffix from logging macros 2013-10-22 08:09:56 -07:00
ast.rs librustc: Implement the proc type as sugar for ~once fn and proc 2013-10-29 10:34:17 -07:00
ast_map.rs Drop the '2' suffix from logging macros 2013-10-22 08:09:56 -07:00
ast_util.rs libsyntax/librustc: Allow mut qualifier in patterns. 2013-10-25 01:21:07 -04:00
attr.rs Assorted cleanups suggested by reviewers. 2013-10-29 09:09:20 -07:00
codemap.rs Drop the '2' suffix from logging macros 2013-10-22 08:09:56 -07:00
diagnostic.rs Remove even more of std::io 2013-10-24 14:21:57 -07:00
fold.rs librustc: Implement the proc type as sugar for ~once fn and proc 2013-10-29 10:34:17 -07:00
opt_vec.rs Drop the '2' suffix from logging macros 2013-10-22 08:09:56 -07:00
syntax.rs register snapshots 2013-10-23 18:06:12 -04:00
visit.rs librustc: Implement the proc type as sugar for ~once fn and proc 2013-10-29 10:34:17 -07:00