Downgrade integer_division to restriction

This commit is contained in:
David Tolnay 2019-06-15 00:11:53 -07:00
parent be5d17feb2
commit f88a387c3f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@
/// }
/// ```
pub INTEGER_DIVISION,
pedantic,
restriction,
"integer division may cause loss of precision"
}

View File

@ -591,6 +591,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
implicit_return::IMPLICIT_RETURN,
indexing_slicing::INDEXING_SLICING,
inherent_impl::MULTIPLE_INHERENT_IMPL,
integer_division::INTEGER_DIVISION,
literal_representation::DECIMAL_LITERAL_REPRESENTATION,
matches::WILDCARD_ENUM_MATCH_ARM,
mem_forget::MEM_FORGET,
@ -626,7 +627,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
functions::TOO_MANY_LINES,
if_not_else::IF_NOT_ELSE,
infinite_iter::MAYBE_INFINITE_ITER,
integer_division::INTEGER_DIVISION,
items_after_statements::ITEMS_AFTER_STATEMENTS,
literal_representation::LARGE_DIGIT_GROUPS,
loops::EXPLICIT_INTO_ITER_LOOP,

View File

@ -758,7 +758,7 @@
},
Lint {
name: "integer_division",
group: "pedantic",
group: "restriction",
desc: "integer division may cause loss of precision",
deprecation: None,
module: "integer_division",