diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-03-26 06:05:40 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-03-27 07:09:16 -0400 |
| commit | aa67deff3303a14fa43e5e4693338c0b9f409e9d (patch) | |
| tree | 1cd7ae8f8c06713dcd93667f59108202192d1b95 /src/libsyntax/print | |
| parent | 28885635108c6def3c2503cbcaeba90fbd011f90 (diff) | |
| download | rust-aa67deff3303a14fa43e5e4693338c0b9f409e9d.tar.gz rust-aa67deff3303a14fa43e5e4693338c0b9f409e9d.zip | |
remove sty_by_ref, though traces still remain due to dtors
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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<ast::self_ty_>, 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<ast::Sigil>) { } pub fn print_fn_header_info(s: @ps, - opt_sty: Option<ast::self_ty_>, purity: ast::purity, onceness: ast::Onceness, opt_sigil: Option<ast::Sigil>, |
