about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/proc_macro_harness.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-19 22:34:11 +0000
committerbors <bors@rust-lang.org>2024-06-19 22:34:11 +0000
commit3d5d7a24f76006b391d8a53d903ae64c1b4a52d2 (patch)
treef248e7b44b8b5b3928dd5965d47455e16782aa28 /compiler/rustc_builtin_macros/src/proc_macro_harness.rs
parentd8a38b00024cd7156dea4ce8fd8ae113a2745e7f (diff)
parente04e35133f28426df9fa61f9703da957d99b48d8 (diff)
downloadrust-3d5d7a24f76006b391d8a53d903ae64c1b4a52d2.tar.gz
rust-3d5d7a24f76006b391d8a53d903ae64c1b4a52d2.zip
Auto merge of #126308 - scottmcm:ban-some-coercions, r=saethlin
Ban `ArrayToPointer` and `MutToConstPointer` from runtime MIR

Zulip conversation: <https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/CastKind.3A.3APointerCoercion.20in.20Runtime.20MIR/near/443955195>

Apparently MIR borrowck cares about at least one of these for checking variance.

In runtime MIR, though, there's no need for them as `PtrToPtr` does the same thing.

(Banning them simplifies passes like GVN that no longer need to handle multiple cast possibilities.)

r? mir
Diffstat (limited to 'compiler/rustc_builtin_macros/src/proc_macro_harness.rs')
0 files changed, 0 insertions, 0 deletions