Moved format-version constant to rustdoc-json-types

This commit is contained in:
Yuval Dolev
2021-10-15 12:27:42 +03:00
parent eeb16a2a89
commit 43f4ef5c6a
2 changed files with 4 additions and 1 deletions

View File

@@ -255,7 +255,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
)
})
.collect(),
format_version: 9,
format_version: types::FORMAT_VERSION,
};
let mut p = self.out_path.clone();
p.push(output.index.get(&output.root).unwrap().name.clone().unwrap());