diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-01-10 11:16:54 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-01-10 11:16:54 -0800 |
| commit | 2a1b6c4de993c8db1bda35d58426d873e9e514c2 (patch) | |
| tree | a348bb8b51487c1504a9c923c2bf489e58047348 /src/libsyntax/print | |
| parent | 982830c836b8c2c9cb3fd311c826bf5775ad1232 (diff) | |
| download | rust-2a1b6c4de993c8db1bda35d58426d873e9e514c2.tar.gz rust-2a1b6c4de993c8db1bda35d58426d873e9e514c2.zip | |
librustc: Implement `&static` as the replacement for `Durable`. r=nmatsakis
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 272c35152bb..f7117cc7043 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -10,7 +10,7 @@ use core::prelude::*; -use ast::{required, provided}; +use ast::{RegionTyParamBound, TraitTyParamBound, required, provided}; use ast; use ast_util; use ast_util::{operator_prec}; @@ -1791,9 +1791,12 @@ fn print_arg_mode(s: ps, m: ast::mode) { fn print_bounds(s: ps, bounds: @~[ast::ty_param_bound]) { if bounds.is_not_empty() { word(s.s, ~":"); - for vec::each(*bounds) |bound| { + for vec::each(*bounds) |&bound| { nbsp(s); - print_type(s, **bound); + match bound { + TraitTyParamBound(ty) => print_type(s, ty), + RegionTyParamBound => word(s.s, ~"&static"), + } } } } |
