Skip to content

Fix warnings about renamed lints #18663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libunicode/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly

#![allow(missing_doc, non_uppercase_statics, non_snake_case)]
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]

/// The version of [Unicode](http://www.unicode.org/)
/// that the `UnicodeChar` and `UnicodeStrSlice` traits are based on.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


#![forbid(non_camel_case_types)]
#![forbid(non_uppercase_statics)]
#![forbid(non_upper_case_globals)]

static mut bar: int = 2;

Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass/match-static-const-rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -34,7 +34,7 @@ fn f() {
}

mod m {
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const aha : int = 7;
}

Expand Down