We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3f337 commit 28ed19bCopy full SHA for 28ed19b
src/librustdoc/clean/mod.rs
@@ -547,7 +547,12 @@ fn clean_ty_generics(
547
.params
548
.iter()
549
.filter_map(|param| match param.kind {
550
- ty::GenericParamDefKind::Lifetime => Some(param.clean(cx)),
+ ty::GenericParamDefKind::Lifetime => {
551
+ if param.name == kw::UnderscoreLifetime {
552
+ return None;
553
+ }
554
+ Some(param.clean(cx))
555
556
ty::GenericParamDefKind::Type { synthetic, .. } => {
557
if param.name == kw::SelfUpper {
558
assert_eq!(param.index, 0);
0 commit comments