rust/compiler
bors 3d5d7a24f7 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
2024-06-19 22:34:11 +00:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Auto merge of #126678 - nnethercote:fix-duplicated-attrs-on-nt-expr, r=petrochenkov 2024-06-19 13:58:21 +00:00
rustc_ast_ir
rustc_ast_lowering Rollup merge of #125293 - dingxiangfei2009:tail-expr-temp-lifetime, r=estebank,davidtwco 2024-06-19 01:51:38 +01:00
rustc_ast_passes Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_ast_pretty Rollup merge of #124135 - petrochenkov:deleglob, r=fmease 2024-06-19 01:51:36 +01:00
rustc_attr Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_baked_icu_data
rustc_borrowck Remove redundant argument from subdiagnostic method 2024-06-18 15:42:11 +00:00
rustc_builtin_macros Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_codegen_cranelift bug! more uses of these in runtime stuff 2024-06-19 10:44:01 -07:00
rustc_codegen_gcc Remove redundant argument from subdiagnostic method 2024-06-18 15:42:11 +00:00
rustc_codegen_llvm Remove redundant argument from subdiagnostic method 2024-06-18 15:42:11 +00:00
rustc_codegen_ssa bug! more uses of these in runtime stuff 2024-06-19 10:44:01 -07:00
rustc_const_eval bug! more uses of these in runtime stuff 2024-06-19 10:44:01 -07:00
rustc_data_structures Use Linux file locking on Redox 2024-06-16 12:56:50 +00:00
rustc_driver
rustc_driver_impl Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_error_codes
rustc_error_messages
rustc_errors Remove redundant argument from subdiagnostic method 2024-06-18 15:42:11 +00:00
rustc_expand Rollup merge of #124135 - petrochenkov:deleglob, r=fmease 2024-06-19 01:51:36 +01:00
rustc_feature Rollup merge of #126668 - fmease:rm-rustc_dump_program_clauses-attrs, r=fee1-dead 2024-06-19 22:51:03 +08:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Rework precise capturing syntax 2024-06-17 22:35:25 -04:00
rustc_hir_analysis Allow tracing through item_bounds query invocations on opaques 2024-06-19 08:47:55 +00:00
rustc_hir_pretty Rework precise capturing syntax 2024-06-17 22:35:25 -04:00
rustc_hir_typeck Rollup merge of #126675 - oli-obk:diagnostics_opaque, r=jackh726 2024-06-19 22:51:05 +08:00
rustc_incremental
rustc_index
rustc_index_macros rustc_span: Minor improvements 2024-06-16 14:08:25 +03:00
rustc_infer Allow constraining opaque types during subtyping in the trait system 2024-06-19 08:29:17 +00:00
rustc_interface Auto merge of #126623 - oli-obk:do_not_count_errors, r=davidtwco 2024-06-18 16:49:19 +00:00
rustc_lexer
rustc_lint Rollup merge of #126422 - Urgau:doctest-impl-non-local-def, r=fmease 2024-06-19 01:51:39 +01:00
rustc_lint_defs Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope 2024-06-14 11:05:35 -04:00
rustc_llvm
rustc_log
rustc_macros Remove redundant argument from subdiagnostic method 2024-06-18 15:42:11 +00:00
rustc_metadata Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_middle Ban ArrayToPointer and MutToConstPointer from runtime MIR 2024-06-19 10:44:01 -07:00
rustc_mir_build Auto merge of #126679 - fmease:rollup-njrv2py, r=fmease 2024-06-19 11:09:31 +00:00
rustc_mir_dataflow Use is_lang_item more aggressively 2024-06-14 16:54:29 -04:00
rustc_mir_transform Ban ArrayToPointer and MutToConstPointer from runtime MIR 2024-06-19 10:44:01 -07:00
rustc_monomorphize Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_next_trait_solver Fix transmute goal 2024-06-18 11:04:01 -04:00
rustc_parse Auto merge of #126678 - nnethercote:fix-duplicated-attrs-on-nt-expr, r=petrochenkov 2024-06-19 13:58:21 +00:00
rustc_parse_format
rustc_passes Rollup merge of #124580 - gurry:124556-suggest-remove-tuple-field, r=jackh726 2024-06-19 09:51:59 +02:00
rustc_pattern_analysis
rustc_privacy Do not ICE in privacy when type inference fails. 2024-06-17 10:09:27 +00:00
rustc_query_impl Allow tracing through item_bounds query invocations on opaques 2024-06-19 08:47:55 +00:00
rustc_query_system Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_resolve Rollup merge of #124135 - petrochenkov:deleglob, r=fmease 2024-06-19 01:51:36 +01:00
rustc_sanitizers Make async drop code more consistent with regular drop code 2024-06-18 14:17:13 +03:00
rustc_serialize
rustc_session Unconditionally warn on usage of wasm32-wasi 2024-06-18 21:05:56 -07:00
rustc_smir Rename InstanceDef -> InstanceKind 2024-06-16 21:35:21 -04:00
rustc_span Rollup merge of #126668 - fmease:rm-rustc_dump_program_clauses-attrs, r=fee1-dead 2024-06-19 22:51:03 +08:00
rustc_symbol_mangling Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
rustc_target Add i686-unknown-redox target 2024-06-16 12:56:48 +00:00
rustc_trait_selection Auto merge of #126614 - compiler-errors:uplift-next-trait-solver, r=lcnr 2024-06-18 19:41:33 +00:00
rustc_traits
rustc_transmute safe transmute: support non-ZST, variantful, uninhabited enums 2024-06-14 21:11:08 +00:00
rustc_ty_utils Rename InstanceDef -> InstanceKind 2024-06-16 21:35:21 -04:00
rustc_type_ir Rollup merge of #126656 - fmease:skip-debug-for-_, r=compiler-errors 2024-06-19 09:52:02 +02:00
rustc_type_ir_macros
stable_mir Rollup merge of #126410 - RalfJung:smir-const-operand, r=oli-obk 2024-06-15 19:51:35 +02:00