Skip to content

Commit 8a32483

Browse files
---
yaml --- r: 69087 b: refs/heads/auto c: 77a00cc h: refs/heads/master i: 69085: 766f44e 69083: 08bd4eb 69079: ecae5e8 69071: 04ac402 69055: 397274e v: v3
1 parent b8f21e1 commit 8a32483

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 3b06df4e35bbde6975575cd137e6f5f65d475d86
17+
refs/heads/auto: 77a00cca0307ad4d7de084b45168387e8d82d92e
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ fn create_enum_md(cx: &mut CrateContext,
568568
assert!(Type::enum_discrim(cx) == cx.int_type);
569569
let discriminant_type_md = get_or_create_type(cx, ty::mk_int(), span);
570570

571-
572571
let variants : &[ty::VariantInfo] = *ty::enum_variants(cx.tcx, enum_def_id);
573572

574573
let enumerators : ~[(~str, int)] = variants
@@ -971,8 +970,7 @@ fn get_or_create_type(cx: &mut CrateContext, t: ty::t, span: span) -> DIType {
971970
ty::ty_enum(def_id, ref substs) => {
972971
create_enum_md(cx, t, def_id, substs, span)
973972
},
974-
ty::ty_box(ref mt) |
975-
ty::ty_uniq(ref mt) => {
973+
ty::ty_box(ref mt) => {
976974
let content_llvm_type = type_of::type_of(cx, mt.ty);
977975
let content_type_metadata = get_or_create_type(cx, mt.ty, span);
978976

@@ -998,7 +996,8 @@ fn get_or_create_type(cx: &mut CrateContext, t: ty::t, span: span) -> DIType {
998996
}
999997
}
1000998
},
1001-
ty::ty_ptr(ref mt) |
999+
ty::ty_uniq(ref mt) |
1000+
ty::ty_ptr(ref mt) |
10021001
ty::ty_rptr(_, ref mt) => {
10031002
let pointee = get_or_create_type(cx, mt.ty, span);
10041003
create_pointer_type(cx, t, span, pointee)

branches/auto/src/test/debug-info/box.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
// debugger:break _zzz
1414
// debugger:run
1515
// debugger:finish
16-
// debugger:print a->val
16+
// debugger:print *a
1717
// check:$1 = 1
18-
// debugger:print b->val
18+
// debugger:print *b
1919
// check:$2 = {2, 3.5}
2020
// debugger:print c->val
2121
// check:$3 = 4

branches/auto/src/test/debug-info/boxed-struct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
// debugger:run
1414
// debugger:finish
1515

16-
// debugger:print unique->val
16+
// debugger:print *unique
1717
// check:$1 = {x = 99, y = 999, z = 9999, w = 99999}
1818

1919
// debugger:print managed->val
2020
// check:$2 = {x = 88, y = 888, z = 8888, w = 88888}
2121

22-
// debugger:print unique_dtor->val
22+
// debugger:print *unique_dtor
2323
// check:$3 = {x = 77, y = 777, z = 7777, w = 77777}
2424

2525
// debugger:print managed_dtor->val

0 commit comments

Comments
 (0)