提交 fa530fff 编写于 作者: A Alex Crichton

rollup merge of #18656 : thiagopnts/rename-deprecated-non_uppercase_statics

......@@ -34,7 +34,7 @@ preamble = '''// Copyright 2012-2014 The Rust Project Developers. See the COPYRI
// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly
#![allow(missing_docs, non_uppercase_statics, non_snake_case)]
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
'''
# Mapping taken from Table 12 from:
......
......@@ -12,7 +12,7 @@
#![forbid(non_camel_case_types)]
#![forbid(non_uppercase_statics)]
#![forbid(non_upper_case_globals)]
#![feature(non_ascii_idents)]
// Some scripts (e.g. hiragana) don't have a concept of
......
......@@ -10,7 +10,7 @@
#![forbid(non_camel_case_types)]
#![forbid(non_uppercase_statics)]
#![forbid(non_upper_case_globals)]
static mut bar: int = 2;
......
......@@ -16,7 +16,7 @@
// around this problem locally by renaming the constant in the `use`
// form to an uppercase identifier that placates the lint.
#![deny(non_uppercase_statics)]
#![deny(non_upper_case_globals)]
pub const A : int = 97;
......@@ -34,7 +34,7 @@ fn f() {
}
mod m {
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const aha : int = 7;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册