Skip to content

Commit d9b3654

Browse files
committed
Auto merge of #3624 - rust-lang:rustup-2024-05-23, r=RalfJung
Automatic Rustup
2 parents 94b6cd6 + bf42109 commit d9b3654

33 files changed

+83
-349
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b54dd08a84f3c07efbc2aaf63c3df219ae680a03
1+
9cdfe285ca724c801dc9f78d22b24ea69b787f26

src/intrinsics/mod.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,15 @@ 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
49-
.get_attrs_by_path(
50-
instance.def_id(),
51-
&[sym::miri, intrinsic_fallback_checks_ub],
52-
)
49+
.get_attrs_by_path(instance.def_id(), &[sym::miri, intrinsic_fallback_is_spec])
5350
.next()
5451
.is_none()
5552
{
5653
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"
54+
"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"
5855
);
5956
}
6057
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.

0 commit comments

Comments
 (0)