Skip to content

Commit 28f24eb

Browse files
committed
fix rustdoc regression
1 parent f74d06c commit 28f24eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustdoc/clean/auto_trait.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ pub(crate) struct AutoTraitFinder<'a, 'tcx> {
2424
pub(crate) cx: &'a mut core::DocContext<'tcx>,
2525
}
2626

27-
impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
27+
impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx>
28+
where
29+
'tcx: 'a, // should be an implied bound; rustc bug #98852.
30+
{
2831
pub(crate) fn new(cx: &'a mut core::DocContext<'tcx>) -> Self {
2932
AutoTraitFinder { cx }
3033
}

0 commit comments

Comments
 (0)