Skip to content

Commit

Permalink
librustc: Update debuginfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmana committed Jul 7, 2014
1 parent e9e5ea2 commit fa8da9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustc/middle/trans/debuginfo.rs
Expand Up @@ -2152,8 +2152,12 @@ impl EnumMemberDescriptionFactory {
let null_variant_index = (1 - nndiscr) as uint;
let null_variant_ident = self.variants.get(null_variant_index).name;
let null_variant_name = token::get_ident(null_variant_ident);
let discrfield = match ptrfield {
adt::ThinPointer(field) => format!("{}", field),
adt::FatPointer(field, pair) => format!("{}${}", field, pair)
};
let union_member_name = format!("RUST$ENCODED$ENUM${}${}",
ptrfield,
discrfield,
null_variant_name);

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

5 comments on commit fa8da9d

@bors
Copy link
Contributor

@bors bors commented on fa8da9d Jul 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at luqmana@fa8da9d

@bors
Copy link
Contributor

@bors bors commented on fa8da9d Jul 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging luqmana/rust/nop = fa8da9d into auto

@bors
Copy link
Contributor

@bors bors commented on fa8da9d Jul 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

luqmana/rust/nop = fa8da9d merged ok, testing candidate = a325780

@bors
Copy link
Contributor

@bors bors commented on fa8da9d Jul 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = a325780

Please sign in to comment.