about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-09-18 18:31:59 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-09-18 21:31:00 -0700
commit1be24f0758d3075d2e7f141f8831bb8a233ce86e (patch)
tree28b93c29c3b427f7cd84142a49b1b86222d700eb /src/libsyntax/print
parente17a3b3194cc5dc213d13ff6499c93482215c223 (diff)
downloadrust-1be24f0758d3075d2e7f141f8831bb8a233ce86e.tar.gz
rust-1be24f0758d3075d2e7f141f8831bb8a233ce86e.zip
replace explicit calls to vec::each with vec::each_ref, partially demode str
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 4998dc7af6c..c7aa724d9fd 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -1672,9 +1672,9 @@ fn print_arg_mode(s: ps, m: ast::mode) {
 fn print_bounds(s: ps, bounds: @~[ast::ty_param_bound]) {
     if vec::len(*bounds) > 0u {
         word(s.s, ~":");
-        for vec::each(*bounds) |bound| {
+        for vec::each_ref(*bounds) |bound| {
             nbsp(s);
-            match bound {
+            match *bound {
               ast::bound_copy => word(s.s, ~"Copy"),
               ast::bound_send => word(s.s, ~"Send"),
               ast::bound_const => word(s.s, ~"Const"),