diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-12-31 23:25:30 -0500 | 
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-01-21 22:25:59 -0500 | 
| commit | a194881991e57c6533490aff4c2d536d5569c514 (patch) | |
| tree | 5a43f808190fc70c0039aa041fa2f500e3e8f279 /src/librustdoc/formats/renderer.rs | |
| parent | 65767e56537e20903b54ecde7c371cbfb1b201b0 (diff) | |
| download | rust-a194881991e57c6533490aff4c2d536d5569c514.tar.gz rust-a194881991e57c6533490aff4c2d536d5569c514.zip | |
Fix rustc::internal lints on rustdoc
Diffstat (limited to 'src/librustdoc/formats/renderer.rs')
| -rw-r--r-- | src/librustdoc/formats/renderer.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/librustdoc/formats/renderer.rs b/src/librustdoc/formats/renderer.rs index c91d6decc0b..5c0f5e50c9e 100644 --- a/src/librustdoc/formats/renderer.rs +++ b/src/librustdoc/formats/renderer.rs @@ -1,6 +1,6 @@ use std::sync::Arc; -use rustc_middle::ty; +use rustc_middle::ty::TyCtxt; use rustc_span::edition::Edition; use crate::clean; @@ -20,7 +20,7 @@ crate trait FormatRenderer<'tcx>: Clone { render_info: RenderInfo, edition: Edition, cache: &mut 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. @@ -55,7 +55,7 @@ crate fn run_format<'tcx, T: FormatRenderer<'tcx>>( render_info: RenderInfo, diag: &rustc_errors::Handler, edition: Edition, - tcx: ty::TyCtxt<'tcx>, + tcx: TyCtxt<'tcx>, ) -> Result<(), Error> { let (krate, mut cache) = Cache::from_krate( render_info.clone(), | 
