]> git.lizzy.rs Git - rust.git/commitdiff
Fix compile-fail tests by allowing double_parens.
authorTheemathas Chirananthavat <theemathas@gmail.com>
Wed, 28 Dec 2016 20:04:46 +0000 (12:04 -0800)
committerTheemathas Chirananthavat <theemathas@gmail.com>
Wed, 28 Dec 2016 20:04:46 +0000 (12:04 -0800)
tests/compile-fail/eq_op.rs
tests/compile-fail/identity_op.rs
tests/compile-fail/reference.rs

index f0502a7179687356df50527ca02f23b641add66e..0ec86157d808c8eccf8336650fca3f745636b3b6 100644 (file)
@@ -2,7 +2,7 @@
 #![plugin(clippy)]
 
 #[deny(eq_op)]
-#[allow(identity_op)]
+#[allow(identity_op, double_parens)]
 #[allow(no_effect, unused_variables, unnecessary_operation)]
 #[deny(nonminimal_bool)]
 fn main() {
index 329c4a6bbf465251378efef0c21645b27d6c0098..6a0b5e927cf7897ec48b47bce99eaab2236b4c2d 100644 (file)
@@ -5,7 +5,7 @@
 const NEG_ONE : i64 = -1;
 const ZERO : i64 = 0;
 
-#[allow(eq_op, no_effect, unnecessary_operation)]
+#[allow(eq_op, no_effect, unnecessary_operation, double_parens)]
 #[deny(identity_op)]
 fn main() {
     let x = 0;
index b77afbc127025ea4969dafa202597b030dd674f1..789425e71fe41ed56dfc998043bd511f2111620f 100644 (file)
@@ -9,7 +9,7 @@ fn get_reference(n : &usize) -> &usize {
     n
 }
 
-#[allow(many_single_char_names)]
+#[allow(many_single_char_names, double_parens)]
 #[allow(unused_variables)]
 #[deny(deref_addrof)]
 fn main() {