Skip to content

Commit 67d7a4e

Browse files
fix typo
1 parent 58050cd commit 67d7a4e

File tree

2 files changed

+2
-2
lines changed
  • cprover_bindings/src/irep
  • kani-compiler/src/codegen_cprover_gotoc/codegen

2 files changed

+2
-2
lines changed

cprover_bindings/src/irep/to_irep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl ToIrep for DatatypeComponent {
136136
(IrepId::CPrettyName, Irep::just_string_id(name.to_string())),
137137
(IrepId::Type, typ.to_irep(mm)),
138138
]),
139-
DatatypeComponent::UnionField { name, typ, padded_typ } => {
139+
DatatypeComponent::UnionField { name, typ: _, padded_typ } => {
140140
Irep::just_named_sub(linear_map![
141141
(IrepId::Name, Irep::just_string_id(name.to_string())),
142142
(IrepId::CPrettyName, Irep::just_string_id(name.to_string())),

kani-compiler/src/codegen_cprover_gotoc/codegen/typ.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ impl<'tcx> GotocCtx<'tcx> {
12301230
} else {
12311231
let pad =
12321232
DatatypeComponent::Padding { name: pad_name.into(), bits: *padding };
1233-
ctx.ensure_struct(struct_name, pretty_struct_name, |ctx, _| {
1233+
ctx.ensure_struct(struct_name, pretty_struct_name, |_ctx, _| {
12341234
vec![DatatypeComponent::field(name, ty.clone()), pad.clone()]
12351235
})
12361236
};

0 commit comments

Comments
 (0)