about summary refs log tree commit diff
path: root/src/libsyntax/diagnostics/plugin.rs
diff options
context:
space:
mode:
authorOliver 'ker' Schneider <rust19446194516@oli-obk.de>2015-06-07 19:50:13 +0200
committerOliver 'ker' Schneider <rust19446194516@oli-obk.de>2015-06-07 19:50:13 +0200
commitec078a033bdd2a4d076f78f2e655b8c3e5e4bf6a (patch)
tree1ec3554c23443ccc25e44eb90efa4f176fe33df9 /src/libsyntax/diagnostics/plugin.rs
parent2c8d75d655b7d0bf84178f464c47a79569a35f3c (diff)
downloadrust-ec078a033bdd2a4d076f78f2e655b8c3e5e4bf6a.tar.gz
rust-ec078a033bdd2a4d076f78f2e655b8c3e5e4bf6a.zip
change some statics to constants
Diffstat (limited to 'src/libsyntax/diagnostics/plugin.rs')
-rw-r--r--src/libsyntax/diagnostics/plugin.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs
index 620ac1280f4..54b09d863a3 100644
--- a/src/libsyntax/diagnostics/plugin.rs
+++ b/src/libsyntax/diagnostics/plugin.rs
@@ -200,9 +200,8 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt,
             ident: name.clone(),
             attrs: Vec::new(),
             id: ast::DUMMY_NODE_ID,
-            node: ast::ItemStatic(
+            node: ast::ItemConst(
                 ty,
-                ast::MutImmutable,
                 expr,
             ),
             vis: ast::Public,