Skip to content

Commit 0e7dedc

Browse files
---
yaml --- r: 152123 b: refs/heads/try2 c: eea329b h: refs/heads/master i: 152121: 246fb34 152119: 054541d v: v3
1 parent 50de689 commit 0e7dedc

File tree

12 files changed

+224
-148
lines changed

12 files changed

+224
-148
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: 138089355d7a1bc28fa58f2bea7680af96bd5b92
8+
refs/heads/try2: eea329b0f71905518902d34ef77c0923096dde1d
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: 198 additions & 124 deletions
Large diffs are not rendered by default.

branches/try2/src/test/debuginfo/borrowed-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// gdb-check:$2 = {{TheB, x = 0, y = 1229782938247303441}, {TheB, 0, 286331153, 286331153}}
2323

2424
// gdb-command:print *univariant_ref
25-
// gdb-check:$3 = {4820353753753434}
25+
// gdb-check:$3 = {{4820353753753434}}
2626

2727
#![allow(unused_variable)]
2828
#![feature(struct_variant)]

branches/try2/src/test/debuginfo/generic-struct-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// gdb-check:$3 = {{Case3, a = 0, b = 22873, c = 22873, d = 22873, e = 22873}, {Case3, a = 0, b = 1499027801, c = 1499027801}, {Case3, a = 0, b = 6438275382588823897}}
2828

2929
// gdb-command:print univariant
30-
// gdb-check:$4 = {a = -1}
30+
// gdb-check:$4 = {{a = -1}}
3131

3232
#![feature(struct_variant)]
3333

branches/try2/src/test/debuginfo/generic-tuple-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// gdb-check:$3 = {{Case3, 0, 22873, 22873, 22873, 22873}, {Case3, 0, 1499027801, 1499027801}, {Case3, 0, 6438275382588823897}}
2828

2929
// gdb-command:print univariant
30-
// gdb-check:$4 = {-1}
30+
// gdb-check:$4 = {{-1}}
3131

3232

3333
// NOTE: This is a copy of the non-generic test case. The `Txx` type parameters have to be

branches/try2/src/test/debuginfo/managed-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// gdb-check:$2 = {{TheB, x = 0, y = 1229782938247303441}, {TheB, 0, 286331153, 286331153}}
2323

2424
// gdb-command:print univariant->val
25-
// gdb-check:$3 = {-9747455}
25+
// gdb-check:$3 = {{-9747455}}
2626

2727
#![allow(unused_variable)]
2828
#![feature(struct_variant, managed_boxes)]

branches/try2/src/test/debuginfo/option-like-enum.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-tidy-linelength
1112
// ignore-android: FIXME(#10381)
1213

1314
// compile-flags:-g
@@ -16,19 +17,19 @@
1617
// gdb-command:finish
1718

1819
// gdb-command:print some
19-
// gdb-check:$1 = (u32 *) 0x12345678
20+
// gdb-check:$1 = {RUST$ENCODED$ENUM$0$None = {0x12345678}}
2021

2122
// gdb-command:print none
22-
// gdb-check:$2 = (u32 *) 0x0
23+
// gdb-check:$2 = {RUST$ENCODED$ENUM$0$None = {0x0}}
2324

2425
// gdb-command:print full
25-
// gdb-check:$3 = {454545, 0x87654321, 9988}
26+
// gdb-check:$3 = {RUST$ENCODED$ENUM$1$Empty = {454545, 0x87654321, 9988}}
2627

2728
// gdb-command:print empty->discr
2829
// gdb-check:$4 = (int *) 0x0
2930

3031
// gdb-command:print droid
31-
// gdb-check:$5 = {id = 675675, range = 10000001, internals = 0x43218765}
32+
// gdb-check:$5 = {RUST$ENCODED$ENUM$2$Void = {id = 675675, range = 10000001, internals = 0x43218765}}
3233

3334
// gdb-command:print void_droid->internals
3435
// gdb-check:$6 = (int *) 0x0

branches/try2/src/test/debuginfo/recursive-struct.rs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-tidy-linelength
1112
// ignore-android: FIXME(#10381)
1213

1314
#![feature(managed_boxes)]
@@ -20,53 +21,53 @@
2021

2122
// gdb-command:print stack_unique.value
2223
// gdb-check:$1 = 0
23-
// gdb-command:print stack_unique.next->value
24+
// gdb-command:print stack_unique.next.RUST$ENCODED$ENUM$0$Empty.val->value
2425
// gdb-check:$2 = 1
2526

2627
// gdb-command:print unique_unique->value
2728
// gdb-check:$3 = 2
28-
// gdb-command:print unique_unique->next->value
29+
// gdb-command:print unique_unique->next.RUST$ENCODED$ENUM$0$Empty.val->value
2930
// gdb-check:$4 = 3
3031

3132
// gdb-command:print box_unique->val.value
3233
// gdb-check:$5 = 4
33-
// gdb-command:print box_unique->val.next->value
34+
// gdb-command:print box_unique->val.next.RUST$ENCODED$ENUM$0$Empty.val->value
3435
// gdb-check:$6 = 5
3536

3637
// gdb-command:print vec_unique[0].value
3738
// gdb-check:$7 = 6.5
38-
// gdb-command:print vec_unique[0].next->value
39+
// gdb-command:print vec_unique[0].next.RUST$ENCODED$ENUM$0$Empty.val->value
3940
// gdb-check:$8 = 7.5
4041

4142
// gdb-command:print borrowed_unique->value
4243
// gdb-check:$9 = 8.5
43-
// gdb-command:print borrowed_unique->next->value
44+
// gdb-command:print borrowed_unique->next.RUST$ENCODED$ENUM$0$Empty.val->value
4445
// gdb-check:$10 = 9.5
4546

4647
// MANAGED
4748
// gdb-command:print stack_managed.value
4849
// gdb-check:$11 = 10
49-
// gdb-command:print stack_managed.next.val->value
50+
// gdb-command:print stack_managed.next.RUST$ENCODED$ENUM$0$Empty.val->val.value
5051
// gdb-check:$12 = 11
5152

5253
// gdb-command:print unique_managed->value
5354
// gdb-check:$13 = 12
54-
// gdb-command:print unique_managed->next.val->value
55+
// gdb-command:print unique_managed->next.RUST$ENCODED$ENUM$0$Empty.val->val.value
5556
// gdb-check:$14 = 13
5657

5758
// gdb-command:print box_managed.val->value
5859
// gdb-check:$15 = 14
59-
// gdb-command:print box_managed->val->next.val->value
60+
// gdb-command:print box_managed->val->next.RUST$ENCODED$ENUM$0$Empty.val->val.value
6061
// gdb-check:$16 = 15
6162

6263
// gdb-command:print vec_managed[0].value
6364
// gdb-check:$17 = 16.5
64-
// gdb-command:print vec_managed[0].next.val->value
65+
// gdb-command:print vec_managed[0].next.RUST$ENCODED$ENUM$0$Empty.val->val.value
6566
// gdb-check:$18 = 17.5
6667

6768
// gdb-command:print borrowed_managed->value
6869
// gdb-check:$19 = 18.5
69-
// gdb-command:print borrowed_managed->next.val->value
70+
// gdb-command:print borrowed_managed->next.RUST$ENCODED$ENUM$0$Empty.val->val.value
7071
// gdb-check:$20 = 19.5
7172

7273
// LONG CYCLE
@@ -97,7 +98,7 @@
9798
// gdb-command:print (*****long_cycle_w_anonymous_types).value
9899
// gdb-check:$31 = 30
99100

100-
// gdb-command:print (*****((*****long_cycle_w_anonymous_types).next)).value
101+
// gdb-command:print (*****((*****long_cycle_w_anonymous_types).next.RUST$ENCODED$ENUM$0$Empty.val)).value
101102
// gdb-check:$32 = 31
102103

103104
// gdb-command:continue

branches/try2/src/test/debuginfo/struct-in-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// gdb-check:$2 = {{Case2, 0, {x = 286331153, y = 286331153, z = 4369}}, {Case2, 0, 1229782938247303441, 4369}}
2525

2626
// gdb-command:print univariant
27-
// gdb-check:$3 = {{x = 123, y = 456, z = 789}}
27+
// gdb-check:$3 = {{{x = 123, y = 456, z = 789}}}
2828

2929
#![allow(unused_variable)]
3030

branches/try2/src/test/debuginfo/struct-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// gdb-check:$3 = {{Case3, a = 0, b = 22873, c = 22873, d = 22873, e = 22873}, {Case3, a = 0, b = 1499027801, c = 1499027801}, {Case3, a = 0, b = 6438275382588823897}}
2828

2929
// gdb-command:print univariant
30-
// gdb-check:$4 = {a = -1}
30+
// gdb-check:$4 = {{a = -1}}
3131

3232
#![allow(unused_variable)]
3333
#![feature(struct_variant)]

branches/try2/src/test/debuginfo/tuple-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// gdb-check:$3 = {{Case3, 0, 22873, 22873, 22873, 22873}, {Case3, 0, 1499027801, 1499027801}, {Case3, 0, 6438275382588823897}}
2828

2929
// gdb-command:print univariant
30-
// gdb-check:$4 = {-1}
30+
// gdb-check:$4 = {{-1}}
3131

3232
#![allow(unused_variable)]
3333

branches/try2/src/test/debuginfo/unique-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// gdb-check:$2 = {{TheB, x = 0, y = 1229782938247303441}, {TheB, 0, 286331153, 286331153}}
2323

2424
// gdb-command:print *univariant
25-
// gdb-check:$3 = {123234}
25+
// gdb-check:$3 = {{123234}}
2626

2727
#![allow(unused_variable)]
2828
#![feature(struct_variant)]

0 commit comments

Comments
 (0)