diff options
| author | bors <bors@rust-lang.org> | 2015-12-21 19:10:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-12-21 19:10:51 +0000 |
| commit | 709d00a2317002183b81df26e9b0b546483ba6f7 (patch) | |
| tree | 654942b9ad325cf51cc4ab9bf72cfc950f7baa08 /src/libsyntax/print | |
| parent | 8cd034de9f523ee6b2498ae647b03660fc8f6fd0 (diff) | |
| parent | 143b9d80d06c314b8cdf5c35ea9b6661006ee6c6 (diff) | |
| download | rust-709d00a2317002183b81df26e9b0b546483ba6f7.tar.gz rust-709d00a2317002183b81df26e9b0b546483ba6f7.zip | |
Auto merge of #30460 - Ms2ger:BindingMode, r=alexcrichton
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index ff01f0ac67e..347b9f45747 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -2471,12 +2471,12 @@ impl<'a> State<'a> { ast::PatWild => try!(word(&mut self.s, "_")), ast::PatIdent(binding_mode, ref path1, ref sub) => { match binding_mode { - ast::BindByRef(mutbl) => { + ast::BindingMode::ByRef(mutbl) => { try!(self.word_nbsp("ref")); try!(self.print_mutability(mutbl)); } - ast::BindByValue(ast::MutImmutable) => {} - ast::BindByValue(ast::MutMutable) => { + ast::BindingMode::ByValue(ast::MutImmutable) => {} + ast::BindingMode::ByValue(ast::MutMutable) => { try!(self.word_nbsp("mut")); } } @@ -2682,7 +2682,7 @@ impl<'a> State<'a> { let m = match *explicit_self { ast::SelfStatic => ast::MutImmutable, _ => match decl.inputs[0].pat.node { - ast::PatIdent(ast::BindByValue(m), _, _) => m, + ast::PatIdent(ast::BindingMode::ByValue(m), _, _) => m, _ => ast::MutImmutable } }; |
