Skip to content

Commit 30e8ab0

Browse files
committed
Encode the name for associated items on a trait. Fixes #18048.
1 parent c1bc150 commit 30e8ab0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/metadata/encoder.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,8 @@ fn encode_info_for_item(ecx: &EncodeContext,
13981398
ty::StaticExplicitSelfCategory;
13991399
}
14001400
ty::TypeTraitItem(associated_type) => {
1401+
encode_name(rbml_w, associated_type.name);
1402+
14011403
let elem = ast_map::PathName(associated_type.name);
14021404
encode_path(rbml_w,
14031405
path.clone().chain(Some(elem).into_iter()));

0 commit comments

Comments
 (0)