about summary refs log tree commit diff
path: root/src/librustdoc/formats/renderer.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-01-22 21:17:32 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-01-27 10:05:06 +0100
commitd98a72c77bb4bbc58598a285446bde63b9b372c9 (patch)
tree4b3cf4f6cdbeb72e5c02d819ca187e5d1d52f1d3 /src/librustdoc/formats/renderer.rs
parent6a36b3f49d209a5321450d934f8a241d5cccbb0e (diff)
downloadrust-d98a72c77bb4bbc58598a285446bde63b9b372c9.tar.gz
rust-d98a72c77bb4bbc58598a285446bde63b9b372c9.zip
Update to new rustdoc APIs
Diffstat (limited to 'src/librustdoc/formats/renderer.rs')
-rw-r--r--src/librustdoc/formats/renderer.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/librustdoc/formats/renderer.rs b/src/librustdoc/formats/renderer.rs
index 65e2187e4ae..6ecc4695dc8 100644
--- a/src/librustdoc/formats/renderer.rs
+++ b/src/librustdoc/formats/renderer.rs
@@ -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(()),