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".
This commit is contained in:
Graydon Hoare 2012-07-26 17:08:21 -07:00
parent c60a6b93fb
commit dbbaa50290
20 changed files with 225 additions and 140 deletions

View file

@ -7,7 +7,6 @@
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End:
#[link(name = "cargo",
@ -19,7 +18,15 @@
#[no_core];
#[warn(no_non_implicitly_copyable_typarams,no_vecs_not_implicitly_copyable)];
// NB: transitional for stage0:
#[allow(unrecognized_lint)];
#[warn(no_unrecognized_warning)];
#[warn(no_non_implicitly_copyable_typarams,
no_vecs_not_implicitly_copyable)];
// The new version:
#[allow(vecs_implicitly_copyable,
non_implicitly_copyable_typarams)];
use core(vers = "0.3");
use std(vers = "0.3");