Skip to content

Commit 28f6cab

Browse files
committed
Allow rustc::default_hash_types in the offending statement
1 parent 428bc14 commit 28f6cab

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
@@ -206,6 +206,9 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
206206
let mut index = (*self.index).clone().into_inner();
207207
index.extend(self.get_trait_items());
208208
let len = index.len();
209+
// This needs to be the default HashMap for compatibility with the public interface for
210+
// rustdoc-json
211+
#[allow(rustc::default_hash_types)]
209212
let output = types::Crate {
210213
root: types::Id(String::from("0:0")),
211214
crate_version: krate.version.clone(),

0 commit comments

Comments
 (0)