]> git.lizzy.rs Git - rust.git/commitdiff
Encode the name for associated items on a trait. Fixes #18048.
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 4 Dec 2014 14:00:16 +0000 (09:00 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 30 Dec 2014 14:36:23 +0000 (09:36 -0500)
src/librustc/metadata/encoder.rs

index e541768b3578efdf9f069578a11f9cf2682bce11..9378ff028e0a983a30a43c48b40ef4e5cd9c010b 100644 (file)
@@ -1398,6 +1398,8 @@ fn add_to_index(item: &ast::Item, rbml_w: &Encoder,
                         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()));