Skip to content

Commit 5a6ed74

Browse files
committed
Remove kw::Empty uses from src/librustdoc.
Much like the ones in the previous commit.
1 parent ca9988e commit 5a6ed74

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/librustdoc/clean/mod.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1943,14 +1943,11 @@ fn clean_trait_object_lifetime_bound<'tcx>(
19431943
// latter contrary to `clean_middle_region`.
19441944
match *region {
19451945
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-
{
1946+
ty::ReEarlyParam(region) => Some(Lifetime(region.name)),
1947+
ty::ReBound(_, ty::BoundRegion { kind: ty::BoundRegionKind::Named(_, name), .. }) => {
19501948
Some(Lifetime(name))
19511949
}
1952-
ty::ReEarlyParam(_)
1953-
| ty::ReBound(..)
1950+
ty::ReBound(..)
19541951
| ty::ReLateParam(_)
19551952
| ty::ReVar(_)
19561953
| ty::RePlaceholder(_)

0 commit comments

Comments
 (0)