about summary refs log tree commit diff
path: root/tests/ui/transmutability/arrays/issue-103783-array-length.rs
diff options
context:
space:
mode:
authorJack Wrenn <jack@wrenn.fyi>2024-08-27 14:05:54 +0000
committerJack Wrenn <jack@wrenn.fyi>2024-08-27 14:05:54 +0000
commit1ad218f3af806c1f0c14e8b44656318b913a3906 (patch)
treeccf2a8da28b740613c71c44c1ec8b28d9c5c7069 /tests/ui/transmutability/arrays/issue-103783-array-length.rs
parentae9f5019f9ce6eb3ecd96206ade4a612efe20fd5 (diff)
downloadrust-1ad218f3af806c1f0c14e8b44656318b913a3906.tar.gz
rust-1ad218f3af806c1f0c14e8b44656318b913a3906.zip
safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom`
As our implementation of MCP411 nears completion and we begin to
solicit testing, it's no longer reasonable to expect testers to
type or remember `BikeshedIntrinsicFrom`. The name degrades the
ease-of-reading of documentation, and the overall experience of
using compiler safe transmute.

Tentatively, we'll instead adopt `TransmuteFrom`.

This name seems to be the one most likely to be stabilized, after
discussion on Zulip [1]. We may want to revisit the ordering of
`Src` and `Dst` before stabilization, at which point we'd likely
consider `TransmuteInto` or `Transmute`.

[1] https://rust-lang.zulipchat.com/#narrow/stream/216762-project-safe-transmute/topic/What.20should.20.60BikeshedIntrinsicFrom.60.20be.20named.3F
Diffstat (limited to 'tests/ui/transmutability/arrays/issue-103783-array-length.rs')
-rw-r--r--tests/ui/transmutability/arrays/issue-103783-array-length.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/transmutability/arrays/issue-103783-array-length.rs b/tests/ui/transmutability/arrays/issue-103783-array-length.rs
index 7fcbcc01075..3537a39259c 100644
--- a/tests/ui/transmutability/arrays/issue-103783-array-length.rs
+++ b/tests/ui/transmutability/arrays/issue-103783-array-length.rs
@@ -3,11 +3,11 @@
 #![allow(dead_code)]
 
 mod assert {
-    use std::mem::{Assume, BikeshedIntrinsicFrom};
+    use std::mem::{Assume, TransmuteFrom};
 
     pub fn is_maybe_transmutable<Src, Dst>()
     where
-        Dst: BikeshedIntrinsicFrom<
+        Dst: TransmuteFrom<
             Src,
             { Assume { alignment: true, lifetimes: true, safety: true, validity: true } },
         >,