rollup merge of #23776: nrc/allow_trivial_cast

r? @alexcrichton
This commit is contained in:
Alex Crichton 2015-03-27 10:07:54 -07:00
commit dc6bb5e8ef
25 changed files with 8 additions and 32 deletions

View file

@ -48,7 +48,6 @@
#![cfg_attr(test, feature(test))]
#![allow(trivial_casts)]
#![allow(trivial_numeric_casts)]
extern crate arena;
extern crate flate;

View file

@ -102,13 +102,13 @@ declare_lint! {
declare_lint! {
pub TRIVIAL_CASTS,
Warn,
Allow,
"detects trivial casts which could be removed"
}
declare_lint! {
pub TRIVIAL_NUMERIC_CASTS,
Warn,
Allow,
"detects trivial casts of numeric types which could be removed"
}
/// Does nothing as a lint pass, but registers some `Lint`s