Closed
Description
As suggested in #122582 (comment), I moved my new intrinsic to core::intrinsics
. But that meant I started getting a new error:
error: `typed_swap` is not yet stable as a const fn
--> library\core\src\mem\mod.rs:731:14
|
731 | unsafe { intrinsics::typed_swap(x, y) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Is that error useful for things with fallback MIR that's already const-checked? Could we skip it?
(Maybe doing that in the same PR that would make CTFE capable of using fallback MIR?)
cc @oli-obk