Skip to content

Commit 7016ff9

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents ae937b4 + 7d350d7 commit 7016ff9

32 files changed

+82
-345
lines changed

src/intrinsics/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
4343
if this.tcx.intrinsic(instance.def_id()).unwrap().must_be_overridden {
4444
throw_unsup_format!("unimplemented intrinsic: `{intrinsic_name}`")
4545
}
46-
let intrinsic_fallback_checks_ub = Symbol::intern("intrinsic_fallback_checks_ub");
46+
let intrinsic_fallback_is_spec = Symbol::intern("intrinsic_fallback_is_spec");
4747
if this
4848
.tcx
4949
.get_attrs_by_path(
5050
instance.def_id(),
51-
&[sym::miri, intrinsic_fallback_checks_ub],
51+
&[sym::miri, intrinsic_fallback_is_spec],
5252
)
5353
.next()
5454
.is_none()
5555
{
5656
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"
57+
"Miri can only use intrinsic fallback bodies that exactly reflect the specification: they fully check for UB and are as non-deterministic as possible. After verifying that `{intrinsic_name}` does so, add the `#[miri::intrinsic_fallback_is_spec]` attribute to it; also ping @rust-lang/miri when you do that"
5858
);
5959
}
6060
Ok(Some(ty::Instance {

tests/fail/dangling_pointers/dangling_zst_deref.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/fail/dangling_pointers/dangling_zst_deref.stderr

Lines changed: 0 additions & 25 deletions
This file was deleted.

tests/fail/dangling_pointers/maybe_null_pointer_deref_zst.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/fail/dangling_pointers/maybe_null_pointer_deref_zst.stderr

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/fail/dangling_pointers/maybe_null_pointer_write_zst.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/fail/dangling_pointers/maybe_null_pointer_write_zst.stderr

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/fail/dangling_pointers/null_pointer_deref_zst.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/fail/dangling_pointers/null_pointer_deref_zst.stderr

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/fail/dangling_pointers/null_pointer_write_zst.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)