New excessive precision lint for floats
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
// FIXME(mark-i-m) remove after i128 stablization merges
|
||||
#![allow(stable_features)]
|
||||
#![feature(i128, i128_type)]
|
||||
#![feature(iterator_find_map)]
|
||||
|
||||
|
||||
#[macro_use]
|
||||
extern crate rustc;
|
||||
@@ -124,6 +126,7 @@ pub mod erasing_op;
|
||||
pub mod escape;
|
||||
pub mod eta_reduction;
|
||||
pub mod eval_order_dependence;
|
||||
pub mod excessive_precision;
|
||||
pub mod explicit_write;
|
||||
pub mod fallible_impl_from;
|
||||
pub mod format;
|
||||
@@ -294,6 +297,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
|
||||
reg.register_early_lint_pass(box enum_variants::EnumVariantNames::new(conf.enum_variant_name_threshold));
|
||||
reg.register_late_lint_pass(box enum_glob_use::EnumGlobUse);
|
||||
reg.register_late_lint_pass(box enum_clike::UnportableVariant);
|
||||
reg.register_late_lint_pass(box excessive_precision::ExcessivePrecision);
|
||||
reg.register_late_lint_pass(box bit_mask::BitMask::new(conf.verbose_bit_mask_threshold));
|
||||
reg.register_late_lint_pass(box ptr::PointerPass);
|
||||
reg.register_late_lint_pass(box needless_bool::NeedlessBool);
|
||||
|
||||
Reference in New Issue
Block a user