rust/compiler/rustc_passes/src
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
..
liveness Reformat use declarations. 2024-07-29 08:26:52 +10:00
abi_test.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
check_attr.rs mir_transform: implement forced inlining 2025-01-10 18:37:54 +00:00
dead.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
debugger_visualizer.rs Use SourceMap to load debugger visualizer files 2024-12-08 18:57:04 +00:00
diagnostic_items.rs Add tcx.visible_traits() and use it for producing diagnostics 2025-01-14 08:51:19 +00:00
entry.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
errors.rs On unused assign lint, detect mut arg: &Ty meant to be arg: &mut Ty 2025-01-11 01:34:23 +00:00
hir_id_validator.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
input_stats.rs Rename PatKind::Lit to Expr 2025-01-08 07:34:59 +00:00
lang_items.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
layout_test.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib_features.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
liveness.rs On unused assign lint, detect mut arg: &Ty meant to be arg: &mut Ty 2025-01-11 01:34:23 +00:00
loops.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
naked_functions.rs turn hir::ItemKind::Fn into a named-field variant 2025-01-04 11:35:31 +01:00
reachable.rs turn hir::ItemKind::Fn into a named-field variant 2025-01-04 11:35:31 +01:00
stability.rs Rollup merge of #135003 - RalfJung:deprecate-allowed-through-unstable, r=davidtwco 2025-01-15 16:30:11 +01:00
upvars.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
weak_lang_items.rs Add support for wasm exception handling to Emscripten target 2025-01-06 10:29:54 +01:00