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/ast_util.rs | |
| 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/ast_util.rs')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index d38b771814c..70561b1eb55 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -68,7 +68,7 @@ pub fn path_to_ident(path: &Path) -> Option<Ident> { pub fn ident_to_pat(id: NodeId, s: Span, i: Ident) -> P<Pat> { P(Pat { id: id, - node: PatIdent(BindByValue(MutImmutable), codemap::Spanned{span:s, node:i}, None), + node: PatIdent(BindingMode::ByValue(MutImmutable), codemap::Spanned{span:s, node:i}, None), span: s }) } |
