Skip to content

Commit 57e6533

Browse files
committed
---
yaml --- r: 55175 b: refs/heads/snap-stage3 c: 9d966ae h: refs/heads/master i: 55173: ab96c31 55171: a41b631 55167: 65ba145 v: v3
1 parent 0898fd8 commit 57e6533

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9b54fbd40f1c803fb3ef8d27ea7d64374c343c47
4+
refs/heads/snap-stage3: 9d966aef060030b1d13a55f6768a8e3afb9a842f
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/trans/adt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ pub fn num_args(r: &Repr, discr: int) -> uint {
409409
st.fields.len() - (if dtor { 1 } else { 0 })
410410
}
411411
General(ref cases) => cases[discr as uint].fields.len() - 1,
412-
NullablePointer{ nonnull: ref nonnull, nndiscr, _ } => {
413-
if discr == nndiscr { nonnull.fields.len() } else { 0 }
412+
NullablePointer{ nonnull: ref nonnull, nndiscr, nullfields: ref nullfields, _ } => {
413+
if discr == nndiscr { nonnull.fields.len() } else { nullfields.len() }
414414
}
415415
}
416416
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
pub fn main() {
12+
match Left(@17) {
13+
Right(()) => {}
14+
_ => {}
15+
}
16+
}

0 commit comments

Comments
 (0)