Skip to content

Commit 87ad928

Browse files
Rollup merge of #96174 - RalfJung:no-run-transmute, r=scottmcm
mark ptr-int-transmute test as no_run This causes [CI failures in Miri](https://github.com/rust-lang/miri-test-libstd/runs/6062500259?check_suite_focus=true) since ptr-int-transmutes are rejected there (when strict provenance is enabled).
2 parents 74cea9f + 74d77d0 commit 87ad928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ extern "rust-intrinsic" {
981981
///
982982
/// Turning a pointer into a `usize`:
983983
///
984-
/// ```
984+
/// ```no_run
985985
/// let ptr = &0;
986986
/// let ptr_num_transmute = unsafe {
987987
/// std::mem::transmute::<&i32, usize>(ptr)

0 commit comments

Comments
 (0)