From fa8da9d6b317f39402f1127575e2bd08db33c508 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Mon, 7 Jul 2014 14:41:18 -0700 Subject: [PATCH] librustc: Update debuginfo. --- src/librustc/middle/trans/debuginfo.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/librustc/middle/trans/debuginfo.rs b/src/librustc/middle/trans/debuginfo.rs index eaa4ce23f1a..d48f8bcf908 100644 --- a/src/librustc/middle/trans/debuginfo.rs +++ b/src/librustc/middle/trans/debuginfo.rs @@ -2152,8 +2152,12 @@ fn create_member_descriptions(&self, cx: &CrateContext) -> Vec 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.