Skip to content

Commit fa530ff

Browse files
committed
rollup merge of rust-lang#18656 : thiagopnts/rename-deprecated-non_uppercase_statics
2 parents 4fa22d9 + 23913ec commit fa530ff

4 files changed

+5
-5
lines changed

src/etc/unicode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly
3636
37-
#![allow(missing_docs, non_uppercase_statics, non_snake_case)]
37+
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
3838
'''
3939

4040
# Mapping taken from Table 12 from:

src/test/run-pass/lint-non-camel-case-types-non-uppercase-statics-unicode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
#![forbid(non_camel_case_types)]
15-
#![forbid(non_uppercase_statics)]
15+
#![forbid(non_upper_case_globals)]
1616
#![feature(non_ascii_idents)]
1717

1818
// Some scripts (e.g. hiragana) don't have a concept of

src/test/run-pass/lint-non-uppercase-statics-lowercase-mut-statics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
#![forbid(non_camel_case_types)]
13-
#![forbid(non_uppercase_statics)]
13+
#![forbid(non_upper_case_globals)]
1414

1515
static mut bar: int = 2;
1616

src/test/run-pass/match-static-const-rename.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// around this problem locally by renaming the constant in the `use`
1717
// form to an uppercase identifier that placates the lint.
1818

19-
#![deny(non_uppercase_statics)]
19+
#![deny(non_upper_case_globals)]
2020

2121
pub const A : int = 97;
2222

@@ -34,7 +34,7 @@ fn f() {
3434
}
3535

3636
mod m {
37-
#[allow(non_uppercase_statics)]
37+
#[allow(non_upper_case_globals)]
3838
pub const aha : int = 7;
3939
}
4040

0 commit comments

Comments
 (0)