Skip to content

Commit

Permalink
Fix some missing cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored and alexcrichton committed Apr 23, 2015
1 parent 92de767 commit 09f1fe0
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,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 09f1fe0

Please sign in to comment.