We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
kw::Empty
src/librustdoc
1 parent ca9988e commit 5a6ed74Copy full SHA for 5a6ed74
src/librustdoc/clean/mod.rs
@@ -1943,14 +1943,11 @@ fn clean_trait_object_lifetime_bound<'tcx>(
1943
// latter contrary to `clean_middle_region`.
1944
match *region {
1945
ty::ReStatic => Some(Lifetime::statik()),
1946
- ty::ReEarlyParam(region) if region.name != kw::Empty => Some(Lifetime(region.name)),
1947
- ty::ReBound(_, ty::BoundRegion { kind: ty::BoundRegionKind::Named(_, name), .. })
1948
- if name != kw::Empty =>
1949
- {
+ ty::ReEarlyParam(region) => Some(Lifetime(region.name)),
+ ty::ReBound(_, ty::BoundRegion { kind: ty::BoundRegionKind::Named(_, name), .. }) => {
1950
Some(Lifetime(name))
1951
}
1952
- ty::ReEarlyParam(_)
1953
- | ty::ReBound(..)
+ ty::ReBound(..)
1954
| ty::ReLateParam(_)
1955
| ty::ReVar(_)
1956
| ty::RePlaceholder(_)
0 commit comments