about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRune Tynan <runetynan@gmail.com>2021-01-22 16:46:19 -0500
committerRune Tynan <runetynan@gmail.com>2021-01-27 18:57:14 -0500
commit28f6cab498fed9cac30e0ee69ef16bffa188ebd6 (patch)
tree36fd24d6d135c40b6d64bd7013701ee929b1b5f8
parent428bc149b5e3fd6626ee4e2141d8da38ebca8e9a (diff)
downloadrust-28f6cab498fed9cac30e0ee69ef16bffa188ebd6.tar.gz
rust-28f6cab498fed9cac30e0ee69ef16bffa188ebd6.zip
Allow rustc::default_hash_types in the offending statement
-rw-r--r--src/librustdoc/json/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/json/mod.rs b/src/librustdoc/json/mod.rs
index 7d4d5598c6b..43f08fcd4dc 100644
--- a/src/librustdoc/json/mod.rs
+++ b/src/librustdoc/json/mod.rs
@@ -206,6 +206,9 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
         let mut index = (*self.index).clone().into_inner();
         index.extend(self.get_trait_items());
         let len = index.len();
+        // This needs to be the default HashMap for compatibility with the public interface for
+        // rustdoc-json
+        #[allow(rustc::default_hash_types)]
         let output = types::Crate {
             root: types::Id(String::from("0:0")),
             crate_version: krate.version.clone(),