Skip to content

Commit

Permalink
Encode the name for associated items on a trait. Fixes #18048.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Dec 30, 2014
1 parent c1bc150 commit 30e8ab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/metadata/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 30e8ab0

Please sign in to comment.