Moved format-version constant to rustdoc-json-types
This commit is contained in:
parent
eeb16a2a89
commit
43f4ef5c6a
2 changed files with 4 additions and 1 deletions
|
@ -255,7 +255,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
format_version: 9,
|
format_version: types::FORMAT_VERSION,
|
||||||
};
|
};
|
||||||
let mut p = self.out_path.clone();
|
let mut p = self.out_path.clone();
|
||||||
p.push(output.index.get(&output.root).unwrap().name.clone().unwrap());
|
p.push(output.index.get(&output.root).unwrap().name.clone().unwrap());
|
||||||
|
|
|
@ -510,5 +510,8 @@ pub struct Static {
|
||||||
pub expr: String,
|
pub expr: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// rustdoc format-version.
|
||||||
|
pub const FORMAT_VERSION: u32 = 9;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue