]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/json/mod.rs
rustdoc-json: Rename `Import.span` to `Import.source`
[rust.git] / src / librustdoc / json / mod.rs
index 8b0c049c05bc7186962364946b0355d45f2c1e7a..9dc2a442cff9cb88a8e7fe1f0deb772d7d0514d2 100644 (file)
@@ -109,7 +109,7 @@ fn get_trait_items(&mut self) -> Vec<(types::Id, types::Item)> {
                                 .map(Clone::clone),
                             visibility: types::Visibility::Public,
                             inner: types::ItemEnum::Trait(trait_item.clone().into()),
-                            source: None,
+                            span: None,
                             docs: Default::default(),
                             links: Default::default(),
                             attrs: Default::default(),
@@ -148,6 +148,10 @@ fn init(
         ))
     }
 
+    fn make_child_renderer(&self) -> Self {
+        self.clone()
+    }
+
     /// Inserts an item into the index. This should be used rather than directly calling insert on
     /// the hashmap because certain items (traits and types) need to have their mappings for trait
     /// implementations filled out before they're inserted.