Skip to content

Commit 92f1a6c

Browse files
---
yaml --- r: 143046 b: refs/heads/try2 c: 77a00cc h: refs/heads/master v: v3
1 parent 54a41bc commit 92f1a6c

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 3b06df4e35bbde6975575cd137e6f5f65d475d86
8+
refs/heads/try2: 77a00cca0307ad4d7de084b45168387e8d82d92e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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/try2/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/try2/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)