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 a4da630 commit a3f2a32Copy full SHA for a3f2a32
src/librustdoc/clean/mod.rs
@@ -585,7 +585,12 @@ fn clean_ty_generics(
585
.params
586
.iter()
587
.filter_map(|param| match param.kind {
588
- ty::GenericParamDefKind::Lifetime => Some(param.clean(cx)),
+ ty::GenericParamDefKind::Lifetime => {
589
+ if param.name == kw::UnderscoreLifetime {
590
+ return None;
591
+ }
592
+ Some(param.clean(cx))
593
594
ty::GenericParamDefKind::Type { synthetic, .. } => {
595
if param.name == kw::SelfUpper {
596
assert_eq!(param.index, 0);
0 commit comments