diff options
| author | Jack Huey <jack.huey@umassmed.edu> | 2020-10-26 14:18:31 -0400 |
|---|---|---|
| committer | Jack Huey <jack.huey@umassmed.edu> | 2021-03-31 10:16:37 -0400 |
| commit | 6d5efa9f040d2638318f9e8b96eab718ef664e3c (patch) | |
| tree | b24284a8356c8d4a2e395aa91b136251dd7a2a08 /src/librustdoc/clean/mod.rs | |
| parent | 666859a6f85a9ddad1e29de2daa4b8eef190c062 (diff) | |
| download | rust-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.rs | 2 |
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)), |
