Allow rustc::default_hash_types in the offending statement

This commit is contained in:
Rune Tynan 2021-01-22 16:46:19 -05:00
parent 428bc149b5
commit 28f6cab498
No known key found for this signature in database
GPG Key ID: 7ECC932F8B2C731E
1 changed files with 3 additions and 0 deletions

View File

@ -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(),