Update to new rustdoc APIs
This commit is contained in:
parent
6a36b3f49d
commit
d98a72c77b
4 changed files with 4 additions and 8 deletions
|
@ -37,7 +37,6 @@ use crate::clean::inline;
|
|||
use crate::clean::types::Type::{QPath, ResolvedPath};
|
||||
use crate::clean::Clean;
|
||||
use crate::core::DocContext;
|
||||
use crate::doctree;
|
||||
use crate::formats::cache::Cache;
|
||||
use crate::formats::item_type::ItemType;
|
||||
use crate::html::render::cache::ExternalLocation;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use rustc_middle::ty;
|
||||
use rustc_middle::ty::TyCtxt;
|
||||
use rustc_span::edition::Edition;
|
||||
|
||||
use crate::clean;
|
||||
|
@ -21,7 +21,7 @@ crate trait FormatRenderer<'tcx>: Clone {
|
|||
render_info: RenderInfo,
|
||||
edition: Edition,
|
||||
cache: Cache,
|
||||
tcx: ty::TyCtxt<'tcx>,
|
||||
tcx: TyCtxt<'tcx>,
|
||||
) -> Result<(Self, clean::Crate), Error>;
|
||||
|
||||
/// Renders a single non-module item. This means no recursive sub-item rendering is required.
|
||||
|
@ -69,9 +69,6 @@ crate fn run_format<'tcx, T: FormatRenderer<'tcx>>(
|
|||
.extra_verbose_generic_activity("create_renderer", T::descr())
|
||||
.run(|| T::init(krate, options, render_info, edition, cache, tcx))?;
|
||||
|
||||
let (mut format_renderer, mut krate) =
|
||||
T::init(krate, options, render_info, edition, cache, tcx)?;
|
||||
|
||||
let mut item = match krate.module.take() {
|
||||
Some(i) => i,
|
||||
None => return Ok(()),
|
||||
|
|
|
@ -394,7 +394,7 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
|
|||
_render_info: RenderInfo,
|
||||
edition: Edition,
|
||||
mut cache: Cache,
|
||||
tcx: ty::TyCtxt<'tcx>,
|
||||
tcx: TyCtxt<'tcx>,
|
||||
) -> Result<(Self, clean::Crate), Error> {
|
||||
// need to save a copy of the options for rendering the index page
|
||||
let md_opts = options.clone();
|
||||
|
|
|
@ -136,7 +136,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
|
|||
_render_info: RenderInfo,
|
||||
_edition: Edition,
|
||||
cache: Cache,
|
||||
tcx: ty::TyCtxt<'tcx>,
|
||||
tcx: TyCtxt<'tcx>,
|
||||
) -> Result<(Self, clean::Crate), Error> {
|
||||
debug!("Initializing json renderer");
|
||||
Ok((
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue