Skip to content

Commit 194c27b

Browse files
committed
auto merge of #5183 : jld/rust/adt-renovation, r=brson
This series of changes moves the representation details of algebraic datatypes (enums, and special cases like structs and tuples and (until they're fully removed) records) from various places around rustc::middle::trans into a single module, to enable future improvements in this area. r?(@nikomatsakis), and the core developers in general; this seems like a “super-review” kind of change.
2 parents c3c018f + a69ec17 commit 194c27b

16 files changed

+1041
-628
lines changed

src/librustc/middle/check_const.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ pub fn check_expr(sess: Session,
168168
expr_field(*) |
169169
expr_index(*) |
170170
expr_tup(*) |
171-
expr_struct(*) |
172-
expr_rec(*) => { }
171+
expr_struct(_, _, None) |
172+
expr_rec(_, None) => { }
173173
expr_addr_of(*) => {
174174
sess.span_err(
175175
e.span,

src/librustc/middle/trans/_match.rs

Lines changed: 72 additions & 97 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)