Skip to content

Commit

Permalink
Rollup merge of #96174 - RalfJung:no-run-transmute, r=scottmcm
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
compiler-errors authored May 6, 2022
2 parents 74cea9f + 74d77d0 commit 87ad928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ extern "rust-intrinsic" {
///
/// Turning a pointer into a `usize`:
///
/// ```
/// ```no_run
/// let ptr = &0;
/// let ptr_num_transmute = unsafe {
/// std::mem::transmute::<&i32, usize>(ptr)
Expand Down

0 comments on commit 87ad928

Please sign in to comment.