We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15fb14d commit 5143a9bCopy full SHA for 5143a9b
kani-compiler/src/kani_middle/reachability.rs
@@ -83,6 +83,14 @@ where
83
crate_items
84
.iter()
85
.filter_map(|item| {
86
+ // avoid stable MIR panic
87
+ // https://github.com/rust-lang/project-stable-mir/issues/95
88
+ if let Some(instance) = Instance::try_from(*item).ok() {
89
+ let int_def_id = rustc_internal::internal(tcx, instance.def.def_id());
90
+ if matches!(tcx.def_kind(int_def_id), rustc_hir::def::DefKind::GlobalAsm) {
91
+ return None;
92
+ }
93
+ };
94
// Only collect monomorphic items.
95
matches!(item.kind(), ItemKind::Fn)
96
.then(|| {
0 commit comments