rust/compiler
Matthias Krüger b07fa7696b
Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr
Allow using named consts in pattern types

This required a refactoring first: I had to stop using `hir::Pat`in `hir::TyKind::Pat` and instead create a separate `TyPat` that has `ConstArg` for range ends instead of `PatExpr`. Within the type system we should be using `ConstArg` for all constants, as otherwise we'd be maintaining two separate const systems that could diverge. The big advantage of this PR is that we now inherit all the rules from const generics and don't have a separate system. While this makes things harder for users (const generic rules wrt what is allowed in those consts), it also means we don't accidentally allow some things like referring to assoc consts or doing math on generic consts.
2025-02-04 18:49:37 +01:00
..
rustc switch jemalloc-sys back to tikv-jemalloc-sys, and update to 0.6.0 2024-12-03 08:56:33 +00:00
rustc_abi Auto merge of #135047 - Flakebi:amdgpu-kernel-cc, r=workingjubilee 2025-01-17 04:36:09 +00:00
rustc_arena Add inherent versions of MaybeUninit methods for slices 2025-01-11 23:57:00 -05:00
rustc_ast Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
rustc_ast_ir
rustc_ast_lowering Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr 2025-02-04 18:49:37 +01:00
rustc_ast_passes Refactor FnKind variant to hold &Fn 2025-01-28 11:22:25 -08:00
rustc_ast_pretty Refactor FnKind variant to hold &Fn 2025-01-28 11:22:25 -08:00
rustc_attr_data_structures rustc_allowed_through_unstable_modules: require deprecation message 2025-02-02 12:36:12 +01:00
rustc_attr_parsing rustc_allowed_through_unstable_modules: require deprecation message 2025-02-02 12:36:12 +01:00
rustc_baked_icu_data Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
rustc_borrowck Rollup merge of #136299 - lqd:polonius-next-episode-9, r=jackh726 2025-02-03 21:11:34 +01:00
rustc_builtin_macros Rollup merge of #134272 - RalfJung:destabilize-rustc_encodable_decodable, r=oli-obk 2025-02-02 18:05:22 +01:00
rustc_codegen_cranelift Rollup merge of #136279 - Zalathar:ensure-ok, r=oli-obk 2025-02-02 12:31:55 +01:00
rustc_codegen_gcc Auto merge of #136331 - jhpratt:rollup-curo1f4, r=jhpratt 2025-01-31 06:55:04 +00:00
rustc_codegen_llvm Rollup merge of #136426 - oli-obk:push-nkpuulwurykn, r=compiler-errors 2025-02-02 23:06:57 +01:00
rustc_codegen_ssa Auto merge of #136413 - EnzymeAD:fix-autodiff-comptime-regression, r=oli-obk 2025-02-03 11:10:56 +00:00
rustc_const_eval Rollup merge of #136430 - FedericoBruzzone:follow-up-136180, r=oli-obk 2025-02-03 21:11:35 +01:00
rustc_data_structures Notes on types/traits used for in-memory query caching 2025-02-03 22:36:01 +11:00
rustc_driver
rustc_driver_impl Use a different hir type for patterns in pattern types than we use in match patterns 2025-02-03 08:18:30 +00:00
rustc_error_codes Auto merge of #133154 - estebank:issue-133137, r=wesleywiser 2025-01-25 11:41:21 +00:00
rustc_error_messages Convert some Into impls into From impls 2024-12-31 01:56:33 +00:00
rustc_errors Rollup merge of #136445 - bjorn3:diag_ctxt_cleanup, r=oli-obk 2025-02-02 23:06:57 +01:00
rustc_expand Auto merge of #134478 - compiler-errors:attr-span, r=oli-obk 2025-01-22 14:46:41 +00:00
rustc_feature Rollup merge of #136167 - pitaj:new_range, r=Nadrieril 2025-02-04 05:36:52 -05:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr 2025-02-04 18:49:37 +01:00
rustc_hir_analysis Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr 2025-02-04 18:49:37 +01:00
rustc_hir_pretty Use a different hir type for patterns in pattern types than we use in match patterns 2025-02-03 08:18:30 +00:00
rustc_hir_typeck Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr 2025-02-04 18:49:37 +01:00
rustc_incremental Remove hook calling via TyCtxtAt. 2025-02-03 17:02:33 +11:00
rustc_index Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
rustc_index_macros update rustc_index_macros feature handling 2024-12-19 20:32:12 +03:00
rustc_infer Move unify_key module. 2025-02-02 17:38:19 +11:00
rustc_interface Auto merge of #133138 - azhogin:azhogin/target-modifiers, r=davidtwco,saethlin 2025-02-03 07:16:57 +00:00
rustc_lexer Add test to check unicode identifier version 2024-12-09 06:23:59 -08:00
rustc_lint Rollup merge of #136242 - samueltardieu:remove-match-def-path, r=flip1995 2025-02-04 18:49:35 +01:00
rustc_lint_defs Make comma separated lists of anything easier to make for errors 2025-01-31 20:36:44 +00:00
rustc_llvm Auto merge of #136350 - matthiaskrgr:rollup-6eqfyvh, r=matthiaskrgr 2025-01-31 20:16:46 +00:00
rustc_log Avoid naming variables str 2025-01-07 14:30:02 +02:00
rustc_macros Rename ensure_forwards_result_if_red to return_result_from_ensure_ok 2025-02-01 12:42:41 +11:00
rustc_metadata Rollup merge of #136464 - nnethercote:rm-TyCtxtAt-for-hooks, r=oli-obk 2025-02-03 19:13:29 +08:00
rustc_middle Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr 2025-02-04 18:49:37 +01:00
rustc_mir_build Rollup merge of #136462 - Zalathar:endpoint, r=oli-obk 2025-02-04 06:14:00 +01:00
rustc_mir_dataflow Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
rustc_mir_transform Rollup merge of #136464 - nnethercote:rm-TyCtxtAt-for-hooks, r=oli-obk 2025-02-03 19:13:29 +08:00
rustc_monomorphize Auto merge of #136481 - jieyouxu:rollup-w0lnnqb, r=jieyouxu 2025-02-03 16:42:25 +00:00
rustc_next_trait_solver introduce ty::Value 2025-01-30 17:47:44 +01:00
rustc_parse Rollup merge of #135882 - hkBst:master, r=estebank 2025-01-30 12:45:27 +01:00
rustc_parse_format use impl Into<String> 2025-01-29 09:48:08 +01:00
rustc_passes Use a different hir type for patterns in pattern types than we use in match patterns 2025-02-03 08:18:30 +00:00
rustc_pattern_analysis Get rid of mir::Const::from_ty_const 2025-01-20 04:26:44 +00:00
rustc_privacy Make comma separated lists of anything easier to make for errors 2025-01-31 20:36:44 +00:00
rustc_query_impl Remove hook calling via TyCtxtAt. 2025-02-03 17:02:33 +11:00
rustc_query_system Rollup merge of #136465 - nnethercote:rustc_middle-MORE, r=jieyouxu 2025-02-04 05:38:03 -05:00
rustc_resolve Refactor FnKind variant to hold &Fn 2025-01-28 11:22:25 -08:00
rustc_sanitizers check the types in ty::Value to value conversion 2025-01-30 18:13:16 +01:00
rustc_serialize
rustc_session Auto merge of #133138 - azhogin:azhogin/target-modifiers, r=davidtwco,saethlin 2025-02-03 07:16:57 +00:00
rustc_smir Rollup merge of #130514 - compiler-errors:unsafe-binders, r=oli-obk 2025-02-01 16:41:03 +01:00
rustc_span Rollup merge of #136167 - pitaj:new_range, r=Nadrieril 2025-02-04 05:36:52 -05:00
rustc_symbol_mangling Move try_to_raw_bytes from ty::Valtree to ty::Value 2025-02-03 18:33:27 +01:00
rustc_target Rollup merge of #134814 - sayantn:keylocker, r=oli-obk 2025-02-04 06:13:58 +01:00
rustc_trait_selection Make error message less awkward 2025-02-03 19:00:22 +00:00
rustc_traits Auto merge of #136011 - compiler-errors:query-norm-vaniquishes-us, r=jackh726 2025-01-29 02:12:12 +00:00
rustc_transmute introduce ty::Value 2025-01-30 17:47:44 +01:00
rustc_ty_utils Rollup merge of #136279 - Zalathar:ensure-ok, r=oli-obk 2025-02-02 12:31:55 +01:00
rustc_type_ir TypeVisitable doesn't require Clone. 2025-02-03 10:12:40 +11:00
rustc_type_ir_macros
stable_mir Insert null checks for pointer dereferences when debug assertions are enabled 2025-01-31 11:13:34 +00:00