Skip to content

Commit 4c18d03

Browse files
authored
Remove StableMIR ICE workaround (#4235)
Per conversation in rust-lang/rust#138025, [another PR](rust-lang/rust#137502) resolved this issue upstream. Resolves #3919 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent 5af25b5 commit 4c18d03

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kani-compiler/src/kani_middle/reachability.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ where
8484
crate_items
8585
.iter()
8686
.filter_map(|item| {
87-
// avoid stable MIR panic
88-
// https://github.com/model-checking/kani/issues/3919
89-
if let Ok(instance) = Instance::try_from(*item) {
90-
let int_def_id = rustc_internal::internal(tcx, instance.def.def_id());
91-
if matches!(tcx.def_kind(int_def_id), rustc_hir::def::DefKind::GlobalAsm) {
92-
return None;
93-
}
94-
};
9587
// Only collect monomorphic items.
9688
matches!(item.kind(), ItemKind::Fn)
9789
.then(|| {

0 commit comments

Comments
 (0)