Add proper support for early/late distinction for lifetime bindings.

Uses newly added Vec::partition method to simplify resolve_lifetime.
This commit is contained in:
Felix S. Klock II 2014-03-07 08:43:39 +01:00
parent 586b619c76
commit 742e458102
20 changed files with 566 additions and 200 deletions

View file

@ -841,6 +841,12 @@ impl Repr for ty::Method {
}
}
impl Repr for ast::Name {
fn repr(&self, _tcx: ctxt) -> ~str {
token::get_name(*self).get().to_str()
}
}
impl Repr for ast::Ident {
fn repr(&self, _tcx: ctxt) -> ~str {
token::get_ident(*self).get().to_str()
@ -1010,6 +1016,12 @@ impl UserString for ty::t {
}
}
impl UserString for ast::Ident {
fn user_string(&self, _tcx: ctxt) -> ~str {
token::get_name(self.name).get().to_owned()
}
}
impl Repr for AbiSet {
fn repr(&self, _tcx: ctxt) -> ~str {
self.to_str()