rust/compiler/rustc_middle/src/middle
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
..
codegen_fn_attrs.rs Add hir::HeaderSafety to make follow up commits simpler 2025-01-14 10:54:11 +00:00
debugger_visualizer.rs fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
dependency_format.rs Make DependencyList an IndexVec 2024-12-19 15:30:32 +00:00
exported_symbols.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lang_items.rs Pretty print AsyncFn traits too 2024-11-22 16:55:28 +00:00
limits.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
mod.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
privacy.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
region.rs Rename Scope.id to Scope.local_id, remove trivial accessor 2024-12-19 02:31:58 +00:00
resolve_bound_vars.rs Remap impl-trait lifetimes on HIR instead of AST lowering. 2024-10-30 16:18:50 +00:00
stability.rs Rollup merge of #135003 - RalfJung:deprecate-allowed-through-unstable, r=davidtwco 2025-01-15 16:30:11 +01:00