Skip to content

Commit

Permalink
Use allow(dead_code)
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Aug 5, 2024
1 parent 34a3995 commit 495b341
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kani-compiler/src/kani_middle/transform/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ impl MutableBody {
&self.locals
}

#[allow(dead_code)]
pub fn arg_count(&self) -> usize {
self.arg_count
}

/// Create a mutable body from the original MIR body.
pub fn from(body: Body) -> Self {
MutableBody {
Expand Down Expand Up @@ -326,6 +331,7 @@ impl MutableBody {
/// `InsertPosition` is `InsertPosition::Before`, `source` will point to the same instruction as
/// before. If `InsertPosition` is `InsertPosition::After`, `source` will point to the
/// terminator of the newly inserted basic block.
#[allow(dead_code)]
pub fn insert_bb(
&mut self,
mut bb: BasicBlock,
Expand Down

0 comments on commit 495b341

Please sign in to comment.