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 6ef84dd commit 7f93979Copy full SHA for 7f93979
kani-compiler/src/kani_middle/reachability.rs
@@ -85,7 +85,7 @@ where
85
.filter_map(|item| {
86
// avoid stable MIR panic
87
// https://github.com/model-checking/kani/issues/3919
88
- if let Some(instance) = Instance::try_from(*item).ok() {
+ if let Ok(instance) = Instance::try_from(*item) {
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;
0 commit comments