From 2a1b6c4de993c8db1bda35d58426d873e9e514c2 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 10 Jan 2013 11:16:54 -0800 Subject: librustc: Implement `&static` as the replacement for `Durable`. r=nmatsakis --- src/libsyntax/print/pprust.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/print/pprust.rs') 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"), + } } } } -- cgit 1.4.1-3-g733a5