about summary refs log tree commit diff
path: root/src/libsyntax/ast_util.rs
diff options
context:
space:
mode:
authorOliver 'ker' Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-09 17:44:47 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-11 12:34:48 +0100
commit73fa9b2da2ee82c91a5c8d605b91f22f19e4d74b (patch)
treec860b482cbc076ac8a87745b5b8f23b88c49d25d /src/libsyntax/ast_util.rs
parent14e09ad4686bb20a98acfd7d930386f6330d2b4d (diff)
downloadrust-73fa9b2da2ee82c91a5c8d605b91f22f19e4d74b.tar.gz
rust-73fa9b2da2ee82c91a5c8d605b91f22f19e4d74b.zip
[breaking-change] don't glob export ast::Mutablity variants
Diffstat (limited to 'src/libsyntax/ast_util.rs')
-rw-r--r--src/libsyntax/ast_util.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs
index 270133ad599..e22cdab97e8 100644
--- a/src/libsyntax/ast_util.rs
+++ b/src/libsyntax/ast_util.rs
@@ -66,9 +66,10 @@ pub fn path_to_ident(path: &Path) -> Option<Ident> {
 }
 
 pub fn ident_to_pat(id: NodeId, s: Span, i: Ident) -> P<Pat> {
+    let spanned = codemap::Spanned{ span: s, node: i };
     P(Pat {
         id: id,
-        node: PatIdent(BindingMode::ByValue(MutImmutable), codemap::Spanned{span:s, node:i}, None),
+        node: PatIdent(BindingMode::ByValue(Mutability::Immutable), spanned, None),
         span: s
     })
 }