Skip to content

Commit 0a3135f

Browse files
committed
---
yaml --- r: 83871 b: refs/heads/try c: 4b4b213 h: refs/heads/master i: 83869: 478e99b 83867: 35d36db 83863: 8a133bf 83855: 81cd59d 83839: 548a4d2 v: v3
1 parent 5e3aa67 commit 0a3135f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0e4d1fc8cae42e15e00f71d9f439b01bb25a86ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5-
refs/heads/try: c6e3501da14784cd2401dded3b53f3ce3405b4ec
5+
refs/heads/try: 4b4b2136e048c39c60c8289f4cd1c870d4aaaeb0
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librustc/middle/trans/adt.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,12 @@ pub fn trans_const(ccx: &mut CrateContext, r: &Repr, discr: Disr,
505505
}
506506
Univariant(ref st, _dro) => {
507507
assert_eq!(discr, 0);
508-
C_struct(build_const_struct(ccx, st, vals))
508+
let contents = build_const_struct(ccx, st, vals);
509+
if st.packed {
510+
C_packed_struct(contents)
511+
} else {
512+
C_struct(contents)
513+
}
509514
}
510515
General(ref cases) => {
511516
let case = &cases[discr];

0 commit comments

Comments
 (0)