Fixed remaning clippy warnings
This commit is contained in:
@@ -39,22 +39,22 @@ fn pretty_function_error(
|
|||||||
match err.location {
|
match err.location {
|
||||||
ir::entities::AnyEntity::Inst(inst) => {
|
ir::entities::AnyEntity::Inst(inst) => {
|
||||||
if inst == cur_inst {
|
if inst == cur_inst {
|
||||||
write!(
|
writeln!(
|
||||||
w,
|
w,
|
||||||
"{1:0$}{2}\n",
|
"{1:0$}{2}",
|
||||||
indent,
|
indent,
|
||||||
"",
|
"",
|
||||||
func.dfg.display_inst(cur_inst, isa)
|
func.dfg.display_inst(cur_inst, isa)
|
||||||
)?;
|
)?;
|
||||||
write!(w, "{1:0$}{2}", indent, "", "^")?;
|
write!(w, "{1:0$}^", indent, "")?;
|
||||||
for _c in cur_inst.to_string().chars() {
|
for _c in cur_inst.to_string().chars() {
|
||||||
write!(w, "~")?;
|
write!(w, "~")?;
|
||||||
}
|
}
|
||||||
write!(w, "\n\nverifier {}\n\n", err.to_string())
|
writeln!(w, "\n\nverifier {}\n", err.to_string())
|
||||||
} else {
|
} else {
|
||||||
write!(
|
write!(
|
||||||
w,
|
w,
|
||||||
"{1:0$}{2}\n",
|
"{1:0$}{2}",
|
||||||
indent,
|
indent,
|
||||||
"",
|
"",
|
||||||
func.dfg.display_inst(cur_inst, isa)
|
func.dfg.display_inst(cur_inst, isa)
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ impl VirtRegs {
|
|||||||
///
|
///
|
||||||
/// If `value` belongs to a virtual register, the congruence class is the values of the virtual
|
/// If `value` belongs to a virtual register, the congruence class is the values of the virtual
|
||||||
/// register. Otherwise it is just the value itself.
|
/// register. Otherwise it is just the value itself.
|
||||||
|
#[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
|
||||||
pub fn congruence_class<'a, 'b>(&'a self, value: &'b Value) -> &'b [Value]
|
pub fn congruence_class<'a, 'b>(&'a self, value: &'b Value) -> &'b [Value]
|
||||||
where
|
where
|
||||||
'a: 'b,
|
'a: 'b,
|
||||||
|
|||||||
Reference in New Issue
Block a user