Skip to content

Commit

Permalink
expect() does not take format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Nov 7, 2023
1 parent 8027413 commit fd2130f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,8 @@ impl<'tcx> GotocCtx<'tcx> {
trace!(func=?instance, "codegen_func_symbol");
let func = self.symbol_name(instance);
self.symbol_table
.lookup(func)
.expect("Function `{func}` should've been declared before usage")
.lookup(&func)
.unwrap_or_else(|| panic!("Function `{func}` should've been declared before usage"))
};
(sym, funct)
}
Expand Down

0 comments on commit fd2130f

Please sign in to comment.