about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2022-07-03 19:56:51 +0300
committerAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2022-08-02 15:20:58 +0300
commit28f24ebe9f1f7a4d1df75b3b48197f022b2df46e (patch)
tree1dd00ebffe74da1d15229729f92367e959d5b410
parentf74d06c2d1f36f7fc7b99296d795cd578612b5a6 (diff)
downloadrust-28f24ebe9f1f7a4d1df75b3b48197f022b2df46e.tar.gz
rust-28f24ebe9f1f7a4d1df75b3b48197f022b2df46e.zip
fix rustdoc regression
-rw-r--r--src/librustdoc/clean/auto_trait.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustdoc/clean/auto_trait.rs b/src/librustdoc/clean/auto_trait.rs
index 5fe2c9ab4e3..ef92629c241 100644
--- a/src/librustdoc/clean/auto_trait.rs
+++ b/src/librustdoc/clean/auto_trait.rs
@@ -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 }
     }