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:
parent
586b619c76
commit
742e458102
20 changed files with 566 additions and 200 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue