about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-04 03:41:50 -0700
committerbors <bors@rust-lang.org>2014-05-04 03:41:50 -0700
commitde99da3fa5d234e5938b4d87dd264b01eb6e86ac (patch)
treef0c2c8296caf4374fc315a58a3f918daf9601910 /src/libsyntax/print
parent0f9a74fea47a7af15046ae2908af6db3ed368b1c (diff)
parent92b741aad4e329c134544c460b50eb095c0e512e (diff)
downloadrust-de99da3fa5d234e5938b4d87dd264b01eb6e86ac.tar.gz
rust-de99da3fa5d234e5938b4d87dd264b01eb6e86ac.zip
auto merge of #13898 : nikomatsakis/rust/type-bounds-b, r=acrichto
This is needed to bootstrap fix for #5723.
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index f5fe92c3e67..fb823522612 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -9,7 +9,8 @@
 // except according to those terms.
 
 use abi;
-use ast::{P, RegionTyParamBound, TraitTyParamBound, Required, Provided};
+use ast::{P, StaticRegionTyParamBound, OtherRegionTyParamBound,
+          TraitTyParamBound, Required, Provided};
 use ast;
 use ast_util;
 use owned_slice::OwnedSlice;
@@ -1881,7 +1882,8 @@ impl<'a> State<'a> {
 
                 try!(match *bound {
                     TraitTyParamBound(ref tref) => self.print_trait_ref(tref),
-                    RegionTyParamBound => word(&mut self.s, "'static"),
+                    StaticRegionTyParamBound => word(&mut self.s, "'static"),
+                    OtherRegionTyParamBound(_) => Ok(())
                 })
             }
             Ok(())