Enable a few more clippy lints.
This commit is contained in:
@@ -631,7 +631,7 @@ def gen_member_inits(iform, fmt):
|
|||||||
# Immediate operands.
|
# Immediate operands.
|
||||||
# We have local variables with the same names as the members.
|
# We have local variables with the same names as the members.
|
||||||
for f in iform.imm_fields:
|
for f in iform.imm_fields:
|
||||||
fmt.line('{}: {},'.format(f.member, f.member))
|
fmt.line('{},'.format(f.member))
|
||||||
|
|
||||||
# Value operands.
|
# Value operands.
|
||||||
if iform.has_value_list:
|
if iform.has_value_list:
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
#![cfg_attr(feature = "std", warn(unstable_features))]
|
#![cfg_attr(feature = "std", warn(unstable_features))]
|
||||||
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
|
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
|
||||||
#![cfg_attr(feature="cargo-clippy", allow(
|
#![cfg_attr(feature="cargo-clippy", allow(
|
||||||
// Rustfmt 0.9.0 is at odds with this lint:
|
|
||||||
block_in_if_condition_stmt,
|
|
||||||
// Produces only a false positive:
|
// Produces only a false positive:
|
||||||
while_let_loop,
|
while_let_loop,
|
||||||
// Produces many false positives, but did produce some valid lints, now fixed:
|
// Produces many false positives, but did produce some valid lints, now fixed:
|
||||||
@@ -28,8 +26,6 @@
|
|||||||
new_without_default,
|
new_without_default,
|
||||||
new_without_default_derive,
|
new_without_default_derive,
|
||||||
should_implement_trait,
|
should_implement_trait,
|
||||||
redundant_field_names,
|
|
||||||
useless_let_if_seq,
|
|
||||||
len_without_is_empty))]
|
len_without_is_empty))]
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "cargo-clippy",
|
feature = "cargo-clippy",
|
||||||
|
|||||||
@@ -188,13 +188,13 @@ fn optimize_complex_addresses(pos: &mut EncCursor, inst: Inst, isa: &TargetIsa)
|
|||||||
flags,
|
flags,
|
||||||
offset,
|
offset,
|
||||||
} => MemOpInfo {
|
} => MemOpInfo {
|
||||||
opcode: opcode,
|
opcode,
|
||||||
inst: inst,
|
inst,
|
||||||
itype: pos.func.dfg.ctrl_typevar(inst),
|
itype: pos.func.dfg.ctrl_typevar(inst),
|
||||||
arg: arg,
|
arg,
|
||||||
st_arg: None,
|
st_arg: None,
|
||||||
flags: flags,
|
flags,
|
||||||
offset: offset,
|
offset,
|
||||||
add_args: None,
|
add_args: None,
|
||||||
},
|
},
|
||||||
InstructionData::Store {
|
InstructionData::Store {
|
||||||
@@ -203,13 +203,13 @@ fn optimize_complex_addresses(pos: &mut EncCursor, inst: Inst, isa: &TargetIsa)
|
|||||||
flags,
|
flags,
|
||||||
offset,
|
offset,
|
||||||
} => MemOpInfo {
|
} => MemOpInfo {
|
||||||
opcode: opcode,
|
opcode,
|
||||||
inst: inst,
|
inst,
|
||||||
itype: pos.func.dfg.ctrl_typevar(inst),
|
itype: pos.func.dfg.ctrl_typevar(inst),
|
||||||
arg: args[1],
|
arg: args[1],
|
||||||
st_arg: Some(args[0]),
|
st_arg: Some(args[0]),
|
||||||
flags: flags,
|
flags,
|
||||||
offset: offset,
|
offset,
|
||||||
add_args: None,
|
add_args: None,
|
||||||
},
|
},
|
||||||
_ => return,
|
_ => return,
|
||||||
|
|||||||
@@ -6,9 +6,7 @@
|
|||||||
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
|
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
|
||||||
#![warn(unused_import_braces, unstable_features)]
|
#![warn(unused_import_braces, unstable_features)]
|
||||||
#![cfg_attr(feature="cargo-clippy", allow(
|
#![cfg_attr(feature="cargo-clippy", allow(
|
||||||
type_complexity,
|
type_complexity))]
|
||||||
// Rustfmt 0.9.0 is at odds with this lint:
|
|
||||||
block_in_if_condition_stmt))]
|
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "cargo-clippy",
|
feature = "cargo-clippy",
|
||||||
warn(
|
warn(
|
||||||
|
|||||||
Reference in New Issue
Block a user