Skip to content

Commit 2469fbb

Browse files
committed
---
yaml --- r: 110067 b: refs/heads/auto c: a9bf099 h: refs/heads/master i: 110065: 15dffac 110063: 18ce0ce v: v3
1 parent ec59a6e commit 2469fbb

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: ee82233a1e6d8b6af3d23a78e3c87ec0aa2545a6
16+
refs/heads/auto: a9bf0990003d5d27bc30a9018bb5cdc0666be916
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -644,25 +644,6 @@ pub fn num_args(r: &Repr, discr: Disr) -> uint {
644644
}
645645
}
646646

647-
/// Access a field, at a point when the value's case is known.
648-
pub fn deref_ty(ccx: &CrateContext, r: &Repr) -> ty::t {
649-
match *r {
650-
CEnum(..) => {
651-
ccx.sess().bug("deref of c-like enum")
652-
}
653-
Univariant(ref st, _) => {
654-
*st.fields.get(0)
655-
}
656-
General(_, ref cases) => {
657-
assert!(cases.len() == 1);
658-
*cases.get(0).fields.get(0)
659-
}
660-
NullablePointer{ .. } => {
661-
ccx.sess().bug("deref of nullable ptr")
662-
}
663-
}
664-
}
665-
666647
/// Access a field, at a point when the value's case is known.
667648
pub fn trans_field_ptr(bcx: &Block, r: &Repr, val: ValueRef, discr: Disr,
668649
ix: uint) -> ValueRef {
@@ -896,11 +877,3 @@ fn const_struct_field(ccx: &CrateContext, val: ValueRef, ix: uint)
896877
real_ix = real_ix + 1;
897878
}
898879
}
899-
900-
/// Is it safe to bitcast a value to the one field of its one variant?
901-
pub fn is_newtypeish(r: &Repr) -> bool {
902-
match *r {
903-
Univariant(ref st, false) => st.fields.len() == 1,
904-
_ => false
905-
}
906-
}

0 commit comments

Comments
 (0)