Skip to content

Commit 47c9694

Browse files
committed
Make it compile
1 parent 9221d4d commit 47c9694

File tree

6 files changed

+104
-72
lines changed

6 files changed

+104
-72
lines changed

src/librustdoc/formats/renderer.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::formats::cache::{Cache, CACHE_KEY};
1111
/// Allows for different backends to rustdoc to be used with the `run_format()` function. Each
1212
/// backend renderer has hooks for initialization, documenting an item, entering and exiting a
1313
/// module, and cleanup/finalizing output.
14-
crate trait FormatRenderer: Clone {
14+
crate trait FormatRenderer<'tcx>: Clone {
1515
/// Sets up any state required for the renderer. When this is called the cache has already been
1616
/// populated.
1717
fn init(
@@ -20,7 +20,7 @@ crate trait FormatRenderer: Clone {
2020
render_info: RenderInfo,
2121
edition: Edition,
2222
cache: &mut Cache,
23-
tcx: ty::TyCtxt<'_>,
23+
tcx: ty::TyCtxt<'tcx>,
2424
) -> Result<(Self, clean::Crate), Error>;
2525

2626
/// Renders a single non-module item. This means no recursive sub-item rendering is required.
@@ -45,13 +45,13 @@ crate trait FormatRenderer: Clone {
4545
}
4646

4747
/// Main method for rendering a crate.
48-
crate fn run_format<T: FormatRenderer>(
48+
crate fn run_format<'tcx, T: FormatRenderer<'tcx>>(
4949
krate: clean::Crate,
5050
options: RenderOptions,
5151
render_info: RenderInfo,
5252
diag: &rustc_errors::Handler,
5353
edition: Edition,
54-
tcx: ty::TyCtxt<'_>,
54+
tcx: ty::TyCtxt<'tcx>,
5555
) -> Result<(), Error> {
5656
let (krate, mut cache) = Cache::from_krate(
5757
render_info.clone(),

0 commit comments

Comments
 (0)