diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-27 19:10:14 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-27 19:10:14 +1100 |
| commit | 5a6ed74a6cae1b8bd994a9b2738896b425726c52 (patch) | |
| tree | 5556ec7168338ae9590feca40c57b155c1985a3b | |
| parent | ca9988ec49debec4cd567d0aa719e2ee108c038b (diff) | |
| download | rust-5a6ed74a6cae1b8bd994a9b2738896b425726c52.tar.gz rust-5a6ed74a6cae1b8bd994a9b2738896b425726c52.zip | |
Remove `kw::Empty` uses from `src/librustdoc`.
Much like the ones in the previous commit.
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index de6dc088176..f72acaae02f 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1943,14 +1943,11 @@ fn clean_trait_object_lifetime_bound<'tcx>( // latter contrary to `clean_middle_region`. match *region { ty::ReStatic => Some(Lifetime::statik()), - ty::ReEarlyParam(region) if region.name != kw::Empty => Some(Lifetime(region.name)), - ty::ReBound(_, ty::BoundRegion { kind: ty::BoundRegionKind::Named(_, name), .. }) - if name != kw::Empty => - { + ty::ReEarlyParam(region) => Some(Lifetime(region.name)), + ty::ReBound(_, ty::BoundRegion { kind: ty::BoundRegionKind::Named(_, name), .. }) => { Some(Lifetime(name)) } - ty::ReEarlyParam(_) - | ty::ReBound(..) + ty::ReBound(..) | ty::ReLateParam(_) | ty::ReVar(_) | ty::RePlaceholder(_) |
