add type name to the tydesc

Closes #8926
This commit is contained in:
Daniel Micay 2013-09-03 04:44:47 -04:00
parent 58decdd7a1
commit 09ad0cd362
6 changed files with 20 additions and 5 deletions

View file

@ -66,6 +66,9 @@ pub struct TyDesc {
// `U`, but in the case of `@Trait` or `~Trait` objects, the type
// `U` is unknown.
borrow_offset: uint,
// Name corresponding to the type
name: &'static str
}
#[lang="opaque"]