diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-01-15 16:30:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 16:30:11 +0100 |
| commit | 369d13573371a88aa58119578bc1a169b0e8f68b (patch) | |
| tree | 8088e1fa317900324c4da251b3cd17f28d606673 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 4c26dc5d3dfe1fdcfdce65695123e6783803a175 (diff) | |
| parent | 7ae494abd45bb09549bba796ac0c5848b423a38d (diff) | |
| download | rust-369d13573371a88aa58119578bc1a169b0e8f68b.tar.gz rust-369d13573371a88aa58119578bc1a169b0e8f68b.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 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
