From dbbaa50290ed7c97154bbc44e7bd73937a9dcb5e Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 26 Jul 2012 17:08:21 -0700 Subject: Nomenclature fixes in the lint checker. Fewer double-negatives. New style is allow(foo), warn(foo), deny(foo) and forbid(foo), mirrored by -A foo, -W foo, -D foo and -F foo on command line. These replace -W no-foo, -W foo, -W err-foo, respectively. Forbid is new, and means "deny, and you can't override it". --- src/libstd/std.rc | 5 +++++ src/libstd/test.rs | 2 ++ 2 files changed, 7 insertions(+) (limited to 'src/libstd') diff --git a/src/libstd/std.rc b/src/libstd/std.rc index 2a63d59bac6..d6f3bf27234 100644 --- a/src/libstd/std.rc +++ b/src/libstd/std.rc @@ -10,7 +10,12 @@ #[no_core]; +// NB: transitional for stage0: +#[allow(unrecognized_lint)]; +#[warn(no_unrecognized_warning)]; #[warn(no_vecs_not_implicitly_copyable)]; +// The new version: +#[allow(vecs_implicitly_copyable)]; use core(vers = "0.3"); import core::*; diff --git a/src/libstd/test.rs b/src/libstd/test.rs index 6a595634611..218c32a1980 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -328,7 +328,9 @@ fn get_concurrency() -> uint { else { threads * sched_overcommit } } +// NB: transitional duplication here. #[warn(no_non_implicitly_copyable_typarams)] +#[allow(non_implicitly_copyable_typarams)] fn filter_tests(opts: test_opts, tests: ~[test_desc]) -> ~[test_desc] { let mut filtered = copy tests; -- cgit 1.4.1-3-g733a5