mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
patch up pretty printing of things with both lifetime and type parameters
This commit is contained in:
@@ -1817,6 +1817,7 @@ fn print_item(s: @ps, generics: &ast::Generics, idx: uint) {
|
||||
let lifetime = generics.lifetimes.get(idx);
|
||||
print_lifetime(s, lifetime);
|
||||
} else {
|
||||
let idx = idx - generics.lifetimes.len();
|
||||
let param = generics.ty_params.get(idx);
|
||||
print_ident(s, param.ident);
|
||||
print_bounds(s, param.bounds);
|
||||
|
||||
Reference in New Issue
Block a user