From aa67deff3303a14fa43e5e4693338c0b9f409e9d Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 26 Mar 2013 06:05:40 -0400 Subject: remove sty_by_ref, though traces still remain due to dtors --- src/libsyntax/print/pprust.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/print') diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 9a9834c488b..a592319de0e 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1643,7 +1643,7 @@ pub fn print_pat(s: @ps, &&pat: @ast::pat, refutable: bool) { // Returns whether it printed anything pub fn print_self_ty(s: @ps, self_ty: ast::self_ty_) -> bool { match self_ty { - ast::sty_static | ast::sty_by_ref => { return false; } + ast::sty_static => { return false; } ast::sty_value => { word(s.s, ~"self"); } ast::sty_region(lt, m) => { word(s.s, ~"&"); @@ -1669,7 +1669,7 @@ pub fn print_fn(s: @ps, opt_self_ty: Option, vis: ast::visibility) { head(s, ~""); - print_fn_header_info(s, opt_self_ty, purity, ast::Many, None, vis); + print_fn_header_info(s, purity, ast::Many, None, vis); nbsp(s); print_ident(s, name); print_generics(s, generics); @@ -2175,7 +2175,6 @@ pub fn print_opt_sigil(s: @ps, opt_sigil: Option) { } pub fn print_fn_header_info(s: @ps, - opt_sty: Option, purity: ast::purity, onceness: ast::Onceness, opt_sigil: Option, -- cgit 1.4.1-3-g733a5