rustc: add a lint to enforce uppercase statics.
This commit is contained in:
parent
da4384583b
commit
c437a16c5d
49 changed files with 272 additions and 170 deletions
|
@ -28,7 +28,7 @@ use search::find_library_in_search_path;
|
|||
use path_util::target_library_in_workspace;
|
||||
pub use target::{OutputType, Main, Lib, Bench, Test};
|
||||
|
||||
static Commands: &'static [&'static str] =
|
||||
static COMMANDS: &'static [&'static str] =
|
||||
&["build", "clean", "do", "info", "install", "prefer", "test", "uninstall",
|
||||
"unprefer"];
|
||||
|
||||
|
@ -55,7 +55,7 @@ pub fn root() -> Path {
|
|||
}
|
||||
|
||||
pub fn is_cmd(cmd: &str) -> bool {
|
||||
Commands.iter().any_(|&c| c == cmd)
|
||||
COMMANDS.iter().any_(|&c| c == cmd)
|
||||
}
|
||||
|
||||
struct ListenerFn {
|
||||
|
@ -417,4 +417,4 @@ mod test {
|
|||
|
||||
// tjc: cheesy
|
||||
fn debug_flags() -> ~[~str] { ~[] }
|
||||
// static debug_flags: ~[~str] = ~[~"-Z", ~"time-passes"];
|
||||
// static DEBUG_FLAGS: ~[~str] = ~[~"-Z", ~"time-passes"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue