Skip to content

Commit 9ad7eeb

Browse files
authored
Minor cleanup for kani-compiler (rust-lang#2263)
1 parent c408045 commit 9ad7eeb

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Cargo.lock

-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ version = "0.22.0"
497497
dependencies = [
498498
"ar",
499499
"atty",
500-
"bitflags",
501500
"clap",
502501
"cprover_bindings",
503502
"home",

kani-compiler/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ publish = false
1111
[dependencies]
1212
ar = { version = "0.9.0", optional = true }
1313
atty = "0.2.14"
14-
bitflags = { version = "1.0", optional = true }
1514
cbmc = { path = "../cprover_bindings", package = "cprover_bindings", optional = true }
1615
clap = { version = "4.1.3", features = ["cargo"] }
1716
home = "0.5"
@@ -36,7 +35,7 @@ tracing-tree = "0.2.2"
3635
# Future proofing: enable backend dependencies using feature.
3736
[features]
3837
default = ['cprover']
39-
cprover = ['ar', 'bitflags', 'cbmc', 'libc', 'num', 'object', 'rustc-demangle', 'serde',
38+
cprover = ['ar', 'cbmc', 'libc', 'num', 'object', 'rustc-demangle', 'serde',
4039
'serde_json', "strum", "strum_macros"]
4140
unsound_experiments = ["kani_queries/unsound_experiments"]
4241

kani-compiler/src/codegen_cprover_gotoc/compiler_interface.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use crate::kani_middle::provide;
1212
use crate::kani_middle::reachability::{
1313
collect_reachable_items, filter_closures_in_const_crate_items, filter_crate_items,
1414
};
15-
use bitflags::_core::any::Any;
1615
use cbmc::goto_program::Location;
1716
use cbmc::{InternedString, MachineModel};
1817
use kani_metadata::CompilerArtifactStub;
@@ -39,6 +38,7 @@ use rustc_session::Session;
3938
use rustc_span::def_id::DefId;
4039
use rustc_target::abi::Endian;
4140
use rustc_target::spec::PanicStrategy;
41+
use std::any::Any;
4242
use std::collections::BTreeMap;
4343
use std::ffi::OsString;
4444
use std::fmt::Write;

kani-compiler/src/kani_compiler.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//! in order to apply the stubs. For the subsequent runs, we add the stub configuration to
1616
//! `-C llvm-args`.
1717
18+
#[cfg(feature = "cprover")]
1819
use crate::codegen_cprover_gotoc::GotocCodegenBackend;
1920
use crate::kani_middle::stubbing;
2021
use crate::parser::{self, KaniCompilerParser};

0 commit comments

Comments
 (0)