about summary refs log tree commit diff
path: root/src/librustdoc/clean/mod.rs
diff options
context:
space:
mode:
authorJack Huey <jack.huey@umassmed.edu>2020-10-26 14:18:31 -0400
committerJack Huey <jack.huey@umassmed.edu>2021-03-31 10:16:37 -0400
commit6d5efa9f040d2638318f9e8b96eab718ef664e3c (patch)
treeb24284a8356c8d4a2e395aa91b136251dd7a2a08 /src/librustdoc/clean/mod.rs
parent666859a6f85a9ddad1e29de2daa4b8eef190c062 (diff)
downloadrust-6d5efa9f040d2638318f9e8b96eab718ef664e3c.tar.gz
rust-6d5efa9f040d2638318f9e8b96eab718ef664e3c.zip
Add var to BoundRegion. Add query to get bound vars for applicable items.
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
-rw-r--r--src/librustdoc/clean/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 58869296d09..217e899001e 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -411,7 +411,7 @@ impl Clean<Option<Lifetime>> for ty::RegionKind {
     fn clean(&self, _cx: &mut DocContext<'_>) -> Option<Lifetime> {
         match *self {
             ty::ReStatic => Some(Lifetime::statik()),
-            ty::ReLateBound(_, ty::BoundRegion { kind: ty::BrNamed(_, name) }) => {
+            ty::ReLateBound(_, ty::BoundRegion { kind: ty::BrNamed(_, name), .. }) => {
                 Some(Lifetime(name))
             }
             ty::ReEarlyBound(ref data) => Some(Lifetime(data.name)),