diff options
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index d714c2c3946..a1f486b3b31 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -614,6 +614,12 @@ impl Clean<Lifetime> for ast::Lifetime { } } +impl Clean<Lifetime> for ast::LifetimeDef { + fn clean(&self) -> Lifetime { + Lifetime(token::get_name(self.lifetime.name).get().to_string()) + } +} + impl Clean<Lifetime> for ty::RegionParameterDef { fn clean(&self) -> Lifetime { Lifetime(token::get_name(self.name).get().to_string()) @@ -1959,8 +1965,8 @@ fn name_from_pat(p: &ast::Pat) -> String { debug!("Trying to get a name from pattern: {:?}", p); match p.node { - PatWild => "_".to_string(), - PatWildMulti => "..".to_string(), + PatWild(PatWildSingle) => "_".to_string(), + PatWild(PatWildMulti) => "..".to_string(), PatIdent(_, ref p, _) => token::get_ident(p.node).get().to_string(), PatEnum(ref p, _) => path_to_string(p), PatStruct(ref name, ref fields, etc) => { |
