auto merge of #5827 : nikomatsakis/rust/issue-5656-change-meaning-of-borrowed-self, r=pcwalton
See #5656 for details. r? @pcwalton
This commit is contained in:
commit
76f6606a8c
66 changed files with 2462 additions and 781 deletions
|
@ -1632,6 +1632,10 @@ pub fn print_pat(s: @ps, &&pat: @ast::pat, refutable: bool) {
|
|||
(s.ann.post)(ann_node);
|
||||
}
|
||||
|
||||
pub fn self_ty_to_str(self_ty: ast::self_ty_, intr: @ident_interner) -> ~str {
|
||||
to_str(self_ty, |a, b| { print_self_ty(a, b); () }, intr)
|
||||
}
|
||||
|
||||
// Returns whether it printed anything
|
||||
pub fn print_self_ty(s: @ps, self_ty: ast::self_ty_) -> bool {
|
||||
match self_ty {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue