]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/clean/auto_trait.rs
Auto merge of #104571 - clubby789:remove-vec-rc-opt, r=the8472
[rust.git] / src / librustdoc / clean / auto_trait.rs
index 84e77e69ecff397cca9edfc49b7289c1a2b3cc35..85bd8446640dd70a8e7428b94de2e1993af163ea 100644 (file)
@@ -336,10 +336,7 @@ fn extract_for_generics(&self, pred: ty::Predicate<'tcx>) -> FxHashSet<GenericPa
                 match br {
                     // We only care about named late bound regions, as we need to add them
                     // to the 'for<>' section
-                    ty::BrNamed(_, name) => Some(GenericParamDef {
-                        name,
-                        kind: GenericParamDefKind::Lifetime { outlives: vec![] },
-                    }),
+                    ty::BrNamed(_, name) => Some(GenericParamDef::lifetime(name)),
                     _ => None,
                 }
             })