rust/compiler/rustc_passes
Guillaume Gomez 369d135733
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.
2025-01-15 16:30:11 +01:00
..
src Rollup merge of #135003 - RalfJung:deprecate-allowed-through-unstable, r=davidtwco 2025-01-15 16:30:11 +01:00
Cargo.toml Auto merge of #134381 - jdonszelmann:move-attribute-types, r=oli-obk 2024-12-17 18:50:50 +00:00
messages.ftl On unused assign lint, detect mut arg: &Ty meant to be arg: &mut Ty 2025-01-11 01:34:23 +00:00