rust/compiler
Matthias Krüger 149ad71e05
Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead
Constify trait aliases

Allow `const trait Foo = Bar + [const] Baz;` trait alias declarations. Their rules are the same as with super traits of const traits. So `[const] Baz` or `const Baz` is only required for `[const] Foo` or `const Foo` bounds respectively.

tracking issue rust-lang/rust#41517 (part of the general trait alias feature gate, but I can split it out into a separate const trait alias feature gate. I just assumed that const traits would stabilize before trait aliases, and we'd want to stabilize trait aliases together with const trait aliases at the same time)

r? ``@compiler-errors`` ``@fee1-dead``
2025-10-31 02:39:14 +01:00
..
rustc Make llvm_enzyme a regular cargo feature 2025-09-15 15:31:56 +00:00
rustc_abi Rollup merge of #147134 - workingjubilee:remove-explicit-abialign-deref, r=Zalathar 2025-09-29 15:44:55 +10:00
rustc_arena some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_ast Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_ast_ir turn pointer width into an integer in target.json 2025-08-27 23:44:49 +02:00
rustc_ast_lowering Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_ast_passes Generate const predicates for const trait aliases 2025-10-30 08:05:37 +00:00
rustc_ast_pretty Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_attr_parsing Rollup merge of #148000 - JonathanBrouwer:wipnew2, r=jdonszelmann 2025-10-25 12:57:39 +02:00
rustc_baked_icu_data Use default locale fallback data 2025-08-28 09:48:54 +00:00
rustc_borrowck Remove QPath::LangItem 2025-10-27 21:19:38 -05:00
rustc_builtin_macros Rollup merge of #144444 - dawidl022:contracts/variable-scoping-rebased, r=jackh726 2025-10-29 08:07:49 +01:00
rustc_codegen_cranelift Skip codegen_crate call in check mode 2025-10-24 10:25:13 +00:00
rustc_codegen_gcc remove broken link 2025-10-20 20:50:44 +00:00
rustc_codegen_llvm Rollup merge of #148139 - Urgau:add-coverage-scope, r=Zalathar 2025-10-28 20:39:37 +11:00
rustc_codegen_ssa Rollup merge of #148177 - bjorn3:codegen_backend_crate_types, r=WaffleLapkin 2025-10-28 17:49:29 +01:00
rustc_const_eval Fix typos: duplicate words in comments 2025-10-27 18:01:04 +03:00
rustc_data_structures Rollup merge of #147716 - zhetaicheleba:master, r=jdonszelmann 2025-10-15 23:41:05 +02:00
rustc_driver compiler: Add Windows resources to rustc-main and rustc_driver 2025-09-05 14:06:31 -04:00
rustc_driver_impl Allow codegen backends to indicate which crate types they support 2025-10-27 16:24:33 +00:00
rustc_error_codes Rollup merge of #146585 - hkBst:indexing-1, r=jdonszelmann 2025-10-02 10:27:49 +02:00
rustc_error_messages Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_errors chore: Update to the latest annotate-snippets 2025-10-24 12:50:19 -06:00
rustc_expand Rollup merge of #147438 - reddevilmidzy:rename-non-inline-module-in-msg, r=fee1-dead 2025-10-18 23:54:44 +02:00
rustc_feature Update CURRENT_RUSTC_VERSION post-bump 2025-10-28 13:22:00 -07:00
rustc_fluent_macro some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_fs_util Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_graphviz some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_hashes some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_hir Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_hir_analysis Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01: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 Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_hir_typeck Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_incremental Use the actual StableCrateId for the incr comp session dir 2025-10-27 15:56:09 +00:00
rustc_index Update #[cfg(bootstrap)] 2025-10-28 13:35:43 -07:00
rustc_index_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_infer rename select_where_possible and select_all_or_error 2025-10-07 23:02:23 +01:00
rustc_interface Allow check builds with binaries for the dummy codegen backend 2025-10-30 15:13:05 +00:00
rustc_lexer Fix a crash/mislex when more than one frontmatter closing possibility is considered 2025-09-22 15:10:41 -04:00
rustc_lint Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_lint_defs Rollup merge of #147185 - RalfJung:repr-c-not-zst, r=petrochenkov 2025-10-28 20:39:32 +11:00
rustc_llvm Auto merge of #146186 - dpaoliello:cc, r=jieyouxu 2025-10-28 13:25:45 +00: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 #148193 - camsteffen:remove-qpath-langitem, r=cjgillot 2025-10-30 10:04:21 +00:00
rustc_middle Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_mir_build Auto merge of #148193 - camsteffen:remove-qpath-langitem, r=cjgillot 2025-10-30 10:04:21 +00:00
rustc_mir_dataflow Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_mir_transform Rollup merge of #147858 - yotamofek:pr/mir/coroutine-layout-opt, r=cjgillot 2025-10-30 02:43:42 -04:00
rustc_monomorphize Allow unsizing pattern types with pointer base 2025-10-21 11:22:51 +00:00
rustc_next_trait_solver Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_parse Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_parse_format Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_passes Rollup merge of #138679 - Shunpoco:issue-125323, r=oli-obk 2025-10-18 23:54:43 +02:00
rustc_pattern_analysis Rename various "concrete opaque type" terminology to say "hidden type" 2025-09-27 22:58:02 +01:00
rustc_privacy Remove QPath::LangItem 2025-10-27 21:19:38 -05:00
rustc_proc_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_public Simplify rustc_public context handling 2025-10-29 23:31:50 +00:00
rustc_public_bridge Simplify rustc_public context handling 2025-10-29 23:31:50 +00:00
rustc_query_impl fixup limit handling code 2025-09-08 15:07:12 -07:00
rustc_query_system Rollup merge of #147830 - Noratrieb:reword-unstable-fingerprint-ice, r=jackh726 2025-10-22 13:20:23 -04:00
rustc_resolve Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_sanitizers Rollup merge of #144936 - rcvalle:rust-cfi-fix-144641, r=lcnr 2025-10-28 20:39:32 +11:00
rustc_serialize Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_session Rollup merge of #148177 - bjorn3:codegen_backend_crate_types, r=WaffleLapkin 2025-10-28 17:49:29 +01:00
rustc_span Remove QPath::LangItem from async 2025-10-27 21:19:38 -05:00
rustc_symbol_mangling Stop passing resolver disambiguator state to AST lowering. 2025-10-24 02:41:52 +00:00
rustc_target Rollup merge of #148272 - vexide:fix/linker-script-align, r=saethlin 2025-10-30 02:43:46 -04:00
rustc_thread_pool some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_trait_selection Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_traits Auto merge of #146096 - adwinwhite:handle_normalization_overflow_in_mono1, r=saethlin 2025-10-13 00:20:10 +00:00
rustc_transmute prefer to use repeat_n over repeat and take 2025-10-09 01:24:55 +08:00
rustc_ty_utils Deduce captures(none) for a return place and parameters 2025-10-25 22:53:52 +02:00
rustc_type_ir Rollup merge of #148153 - osamakader:fix-duplicate-the, r=JonathanBrouwer 2025-10-27 22:13:23 +11:00
rustc_type_ir_macros some cleanups in compiler 2025-10-12 08:08:30 +00: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