From ec078a033bdd2a4d076f78f2e655b8c3e5e4bf6a Mon Sep 17 00:00:00 2001 From: Oliver 'ker' Schneider Date: Sun, 7 Jun 2015 19:50:13 +0200 Subject: change some statics to constants --- src/libsyntax/diagnostics/plugin.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libsyntax/diagnostics') 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, -- cgit 1.4.1-3-g733a5