rust/compiler
bors 122cbd0438 Auto merge of #147804 - tmiasko:move-copy, r=cjgillot,saethlin
Turn moves into copies after copy propagation

Previously copy propagation presumed that there is further unspecified distinction between move operands and copy operands in assignments and propagated moves from assignments into terminators. This is inconsistent with current operational semantics.

Turn moves into copies after copy propagation to preserve existing behavior.

Fixes https://github.com/rust-lang/rust/issues/137936.
Fixes https://github.com/rust-lang/rust/issues/146423.

r? `@cjgillot`
2025-11-23 13:56:14 +00:00
..
rustc Auto merge of #149170 - ZuseZ4:automate-offload-packager, r=oli-obk 2025-11-23 10:45:30 +00:00
rustc_abi Rollup merge of #145954 - RalfJung:syscall-c-variadics, r=jackh726 2025-11-16 20:30:53 +11:00
rustc_arena Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_ast Give all impls a constness 2025-11-18 09:20:21 +00:00
rustc_ast_ir Implement &pin patterns and ref pin bindings 2025-11-10 09:57:08 +08:00
rustc_ast_lowering Give all impls a constness 2025-11-18 09:20:21 +00:00
rustc_ast_passes Reject async fn in const impl during AST validation 2025-11-21 00:02:58 +09:00
rustc_ast_pretty Give all impls a constness 2025-11-18 09:20:21 +00:00
rustc_attr_parsing Rollup merge of #148407 - Urgau:suspicious_int_mutable_consts, r=JonathanBrouwer 2025-11-22 18:41:20 +01:00
rustc_baked_icu_data Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_borrowck Replace OffsetOf by an actual sum. 2025-11-18 00:10:03 +00:00
rustc_builtin_macros Give all impls a constness 2025-11-18 09:20:21 +00:00
rustc_codegen_cranelift Replace OffsetOf by an actual sum. 2025-11-18 00:10:03 +00:00
rustc_codegen_gcc Auto merge of #148481 - GuillaumeGomez:subtree-update_cg_gcc_2025-11-04, r=GuillaumeGomez 2025-11-13 18:00:02 +00:00
rustc_codegen_llvm Auto merge of #149170 - ZuseZ4:automate-offload-packager, r=oli-obk 2025-11-23 10:45:30 +00:00
rustc_codegen_ssa Allow passing primary spans to SharedEmitter 2025-11-21 14:37:10 +00:00
rustc_const_eval Auto merge of #148434 - oli-obk:inherent-const-impl, r=fee1-dead 2025-11-19 02:23:56 +00:00
rustc_data_structures Auto merge of #148818 - Zalathar:rollup-4vujcg0, r=Zalathar 2025-11-11 13:30:50 +00:00
rustc_driver Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_driver_impl Only try to link against offload functions if llvm.enzyme is enabled 2025-11-23 00:19:53 -08:00
rustc_error_codes Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_error_messages Remove unused pop_span_label method 2025-11-21 14:16:12 +00:00
rustc_errors Auto merge of #148882 - 20jasper:patch-1, r=nnethercote,Kivooeo 2025-11-23 07:26:56 +00:00
rustc_expand Give all impls a constness 2025-11-18 09:20:21 +00:00
rustc_feature Add #[rustc_should_not_be_called_on_const_items] attribute 2025-11-22 14:27:28 +01:00
rustc_fluent_macro Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_fs_util Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_graphviz Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_hashes some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_hir Add #[rustc_should_not_be_called_on_const_items] attribute 2025-11-22 14:27:28 +01:00
rustc_hir_analysis Auto merge of #148434 - oli-obk:inherent-const-impl, r=fee1-dead 2025-11-19 02:23:56 +00:00
rustc_hir_id rustc_hir_id: Add a comment explaining why the crate exists 2025-08-20 15:04:00 -07:00
rustc_hir_pretty Give all impls a constness 2025-11-18 09:20:21 +00:00
rustc_hir_typeck Check for intrinsic to fn ptr casts in unified coercions 2025-11-21 00:01:21 +01:00
rustc_incremental Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_index Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_index_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_infer Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_interface Auto merge of #149170 - ZuseZ4:automate-offload-packager, r=oli-obk 2025-11-23 10:45:30 +00:00
rustc_lexer Update memchr to 2.7.6 2025-09-26 17:53:49 +02:00
rustc_lint Add const_item_interior_mutations lint 2025-11-22 14:48:40 +01:00
rustc_lint_defs c_variadic: Add future-incompatibility warning for ... arguments without a pattern outside of extern blocks 2025-11-10 14:33:56 +01:00
rustc_llvm Only try to link against offload functions if llvm.enzyme is enabled 2025-11-23 00:19:53 -08:00
rustc_log Restrict sysroot crate imports to those defined in this repo. 2025-10-15 13:17:25 +01:00
rustc_macros use declarative macro for #[derive(TryFromU32)] 2025-10-06 14:54:38 +00:00
rustc_metadata Auto merge of #149054 - oli-obk:min-encode, r=fee1-dead 2025-11-19 12:06:14 +00:00
rustc_middle Auto merge of #149054 - oli-obk:min-encode, r=fee1-dead 2025-11-19 12:06:14 +00:00
rustc_mir_build Auto merge of #149044 - clubby789:implicit-return-span, r=cjgillot 2025-11-22 06:28:24 +00:00
rustc_mir_dataflow Replace OffsetOf by an actual sum. 2025-11-18 00:10:03 +00:00
rustc_mir_transform Auto merge of #147804 - tmiasko:move-copy, r=cjgillot,saethlin 2025-11-23 13:56:14 +00:00
rustc_monomorphize rlib handling 2025-11-19 00:17:37 -05:00
rustc_next_trait_solver move GAT inference prevention hack 2025-11-12 14:59:28 +01:00
rustc_parse Emit error when using path-segment keyword as cfg pred 2025-11-21 18:48:04 +08:00
rustc_parse_format Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_passes Add #[rustc_should_not_be_called_on_const_items] attribute 2025-11-22 14:27:28 +01:00
rustc_pattern_analysis fix: Do not ICE when missing match arm with ill-formed subty is met 2025-11-13 01:36:35 +09:00
rustc_privacy Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_proc_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_public Rollup merge of #148261 - aDotInTheVoid:no-sync-for-smir, r=celinval 2025-11-20 11:15:52 +01:00
rustc_public_bridge Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_query_impl Lock shards while collecting active jobs. 2025-11-14 09:01:22 +08:00
rustc_query_system fix(span): track unnormalized source len for dep-info 2025-11-15 09:05:08 -05:00
rustc_resolve Use less brittle way for updating error message 2025-11-20 11:27:18 +00:00
rustc_sanitizers Rollup merge of #144936 - rcvalle:rust-cfi-fix-144641, r=lcnr 2025-10-28 20:39:32 +11:00
rustc_serialize Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_session Emit error when using path-segment keyword as cfg pred 2025-11-21 18:48:04 +08:00
rustc_span Add #[rustc_should_not_be_called_on_const_items] attribute 2025-11-22 14:27:28 +01:00
rustc_symbol_mangling Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_target Auto merge of #147536 - mati865:gnullvm-self-contained, r=petrochenkov 2025-11-22 16:34:09 +00:00
rustc_thread_pool some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_trait_selection Rollup merge of #149185 - Jules-Bertholet:fix-149092, r=chenyukang 2025-11-22 18:41:23 +01:00
rustc_traits add const_of_item query and use it in normalization 2025-11-08 13:50:47 -05:00
rustc_transmute prefer to use repeat_n over repeat and take 2025-10-09 01:24:55 +08:00
rustc_ty_utils Fix ICE when collecting opaques from trait method declarations 2025-11-21 21:42:40 +09:00
rustc_type_ir Auto merge of #135634 - joboet:trivial-clone, r=Mark-Simulacrum 2025-11-10 15:41:43 +00:00
rustc_type_ir_macros compiler: Fix a couple issues around cargo feature unification 2025-10-31 14:14:05 -04:00
rustc_windows_rc [win] Use find-msvc-tools instead of cc to find the linker and rc on Windows 2025-09-19 12:00:30 -07:00