about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-01-15 16:30:11 +0100
committerGitHub <noreply@github.com>2025-01-15 16:30:11 +0100
commite31493b9b84d91c52431c4e2a82e6224b8e4f779 (patch)
treef34227b8b94077040772822d571a6400dec0bf85 /compiler/rustc_codegen_llvm/src
parentf6df26682ec930915044697db23352c656cd1671 (diff)
parentcaebd67ba99e15ffd0854804d19a3b9d5e4bbc72 (diff)
downloadrust-e31493b9b84d91c52431c4e2a82e6224b8e4f779.tar.gz
rust-e31493b9b84d91c52431c4e2a82e6224b8e4f779.zip
Rollup merge of #135003 - RalfJung:deprecate-allowed-through-unstable, r=davidtwco
deprecate `std::intrinsics::transmute` etc, use `std::mem::*` instead

The `rustc_allowed_through_unstable_modules` attribute lets users call `std::mem::transmute` as `std::intrinsics::transmute`. The former is a reexport of the latter, and for a long time we didn't properly check stability for reexports, so making this a hard error now would be a breaking change for little gain. But at the same time, `std::intrinsics::transmute` is not the intended path for this function, so I think it is a good idea to show a deprecation warning when that path is used. This PR implements that, for all the functions in `std::intrinsics` that carry the attribute.

I assume this will need ``@rust-lang/libs-api`` FCP.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions