fix rustdoc regression

This commit is contained in:
Ali MJ Al-Nasrawy 2022-07-03 19:56:51 +03:00
parent f74d06c2d1
commit 28f24ebe9f

View File

@ -24,7 +24,10 @@ pub(crate) struct AutoTraitFinder<'a, 'tcx> {
pub(crate) cx: &'a mut core::DocContext<'tcx>,
}
impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx>
where
'tcx: 'a, // should be an implied bound; rustc bug #98852.
{
pub(crate) fn new(cx: &'a mut core::DocContext<'tcx>) -> Self {
AutoTraitFinder { cx }
}