diff options
| author | James Miller <bladeon@gmail.com> | 2013-07-06 13:38:56 +1200 |
|---|---|---|
| committer | James Miller <bladeon@gmail.com> | 2013-07-07 22:51:10 +1200 |
| commit | 46a1f54666dbeb9a926c75b380f62571963cbacc (patch) | |
| tree | 1ef88fa9ef34af53d983b4ef5d4a70792c3ddaba /src/libsyntax/print | |
| parent | 97c5a44d3e805652a54a5693bbf2ab6d44db993b (diff) | |
De-manage OptVec<TyParamBounds>
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index d90055caffb..d054f927894 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -418,7 +418,7 @@ pub fn print_type(s: @ps, ty: &ast::Ty) { f.purity, f.onceness, &f.decl, None, &f.bounds, Some(&generics), None); } - ast::ty_path(ref path, bounds, _) => print_bounded_path(s, path, bounds), + ast::ty_path(ref path, ref bounds, _) => print_bounded_path(s, path, bounds), ast::ty_fixed_length_vec(ref mt, v) => { word(s.s, "["); match mt.mutbl { @@ -1773,7 +1773,7 @@ pub fn print_generics(s: @ps, generics: &ast::Generics) { let idx = idx - generics.lifetimes.len(); let param = generics.ty_params.get(idx); print_ident(s, param.ident); - print_bounds(s, param.bounds, false); + print_bounds(s, ¶m.bounds, false); } } |
