]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
rustdoc: Early doc link resolution fixes and refactorings
[rust.git] / compiler / rustc_metadata / src / rmeta / decoder / cstore_impl.rs
index cd3a1d72d41d24d8194adfa14ae6267420f50699..63bf929fb86393a7bc4b102dcd54dca606bb9865 100644 (file)
@@ -160,7 +160,9 @@ fn into_args(self) -> (DefId, SimplifiedType) {
         let _ = cdata;
         tcx.calculate_dtor(def_id, |_,_| Ok(()))
     }
-    associated_item_def_ids => { cdata.get_associated_item_def_ids(tcx, def_id.index) }
+    associated_item_def_ids => {
+        tcx.arena.alloc_from_iter(cdata.get_associated_item_def_ids(def_id.index, tcx.sess))
+    }
     associated_item => { cdata.get_associated_item(def_id.index) }
     inherent_impls => { cdata.get_inherent_implementations_for_type(tcx, def_id.index) }
     is_foreign_item => { cdata.is_foreign_item(def_id.index) }