Encode the name for associated items on a trait. Fixes #18048.

This commit is contained in:
Niko Matsakis 2014-12-04 09:00:16 -05:00
parent c1bc150bc4
commit 30e8ab0182
1 changed files with 2 additions and 0 deletions

View File

@ -1398,6 +1398,8 @@ fn encode_info_for_item(ecx: &EncodeContext,
ty::StaticExplicitSelfCategory;
}
ty::TypeTraitItem(associated_type) => {
encode_name(rbml_w, associated_type.name);
let elem = ast_map::PathName(associated_type.name);
encode_path(rbml_w,
path.clone().chain(Some(elem).into_iter()));