Skip to content

Commit d6909e1

Browse files
committed
Allow rustc::default_hash_types in the offending statement
1 parent bb65513 commit d6909e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/json/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
211211
let mut index = (*self.index).clone().into_inner();
212212
index.extend(self.get_trait_items(cache));
213213
let len = index.len();
214+
// This needs to be the default HashMap for compatibility with the public interface for
215+
// rustdoc-json
216+
#[allow(rustc::default_hash_types)]
214217
let output = types::Crate {
215218
root: types::Id(String::from("0:0")),
216219
crate_version: krate.version.clone(),

0 commit comments

Comments
 (0)