You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let intrinsic_fallback_checks_ub = Symbol::intern("intrinsic_fallback_checks_ub");
47
+
if this
48
+
.tcx
49
+
.get_attrs_by_path(
50
+
instance.def_id(),
51
+
&[sym::miri, intrinsic_fallback_checks_ub],
52
+
)
53
+
.next()
54
+
.is_none()
55
+
{
56
+
throw_unsup_format!(
57
+
"miri can only use intrinsic fallback bodies that check UB. After verifying that `{intrinsic_name}` does so, add the `#[miri::intrinsic_fallback_checks_ub]` attribute to it; also ping @rust-lang/miri when you do that"
58
+
);
59
+
}
60
+
Ok(Some(ty::Instance{
61
+
def: ty::InstanceDef::Item(instance.def_id()),
62
+
args: instance.args,
63
+
}))
71
64
}
72
-
let intrinsic_fallback_checks_ub = Symbol::intern("intrinsic_fallback_checks_ub");
"miri can only use intrinsic fallback bodies that check UB. After verifying that `{intrinsic_name}` does so, add the `#[miri::intrinsic_fallback_checks_ub]` attribute to it; also ping @rust-lang/miri when you do that"
0 commit comments