Skip to content

Commit

Permalink
Fix some missing cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Apr 17, 2015
1 parent 39b7928 commit 5368070
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/librustc_driver/test.rs
Expand Up @@ -290,7 +290,12 @@ impl<'a, 'tcx> Env<'a, 'tcx> {
-> ty::Region
{
let name = token::intern(name);
ty::ReEarlyBound(ast::DUMMY_NODE_ID, space, index, name)
ty::ReEarlyBound(ty::EarlyBoundRegion {
param_id: ast::DUMMY_NODE_ID,
space: space,
index: index,
name: name
})
}

pub fn re_late_bound_with_debruijn(&self, id: u32, debruijn: ty::DebruijnIndex) -> ty::Region {
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/clean/mod.rs
Expand Up @@ -775,7 +775,7 @@ impl Clean<Option<Lifetime>> for ty::Region {
ty::ReStatic => Some(Lifetime::statik()),
ty::ReLateBound(_, ty::BrNamed(_, name)) =>
Some(Lifetime(token::get_name(name).to_string())),
ty::ReEarlyBound(_, _, _, name) => Some(Lifetime(name.clean(cx))),
ty::ReEarlyBound(ref data) => Some(Lifetime(data.name.clean(cx))),

ty::ReLateBound(..) |
ty::ReFree(..) |
Expand Down

0 comments on commit 5368070

Please sign in to comment.