Skip to content

Commit

Permalink
Update kani-compiler/src/kani_middle/reachability.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Dec 8, 2023
1 parent 5415041 commit 29ac962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kani-compiler/src/kani_middle/reachability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<'tcx> MonoItemsCollector<'tcx> {
/// instruction looking for the items that should be included in the compilation.
fn reachable_items(&mut self) {
while let Some(to_visit) = self.queue.pop() {
if !self.tcx.is_foreign_item(rustc_internal::internal(to_visit.clone()).def_id()) {
if !self.collected.contains(&to_visit) {
self.collected.insert(to_visit.clone());
let next_items = match &to_visit {
MonoItem::Fn(instance) => self.visit_fn(*instance),
Expand Down

0 comments on commit 29ac962

Please sign in to comment.