Skip to content

Commit fa8da9d

Browse files
committed
librustc: Update debuginfo.
1 parent e9e5ea2 commit fa8da9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/middle/trans/debuginfo.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,8 +2152,12 @@ impl EnumMemberDescriptionFactory {
21522152
let null_variant_index = (1 - nndiscr) as uint;
21532153
let null_variant_ident = self.variants.get(null_variant_index).name;
21542154
let null_variant_name = token::get_ident(null_variant_ident);
2155+
let discrfield = match ptrfield {
2156+
adt::ThinPointer(field) => format!("{}", field),
2157+
adt::FatPointer(field, pair) => format!("{}${}", field, pair)
2158+
};
21552159
let union_member_name = format!("RUST$ENCODED$ENUM${}${}",
2156-
ptrfield,
2160+
discrfield,
21572161
null_variant_name);
21582162

21592163
// Create the (singleton) list of descriptions of union members.

0 commit comments

Comments
 (0)