rust/compiler
Dylan DPC b727132e23
Rollup merge of #108161 - WaffleLapkin:const_param_ty, r=BoxyUwU
Add `ConstParamTy` trait

This is a bit sketch, but idk.
r? `@BoxyUwU`

Yet to be done:
- [x] ~~Figure out if it's okay to implement `StructuralEq` for primitives / possibly remove their special casing~~ (it should be okay, but maybe not in this PR...)
- [ ] Maybe refactor the code a little bit
- [x] Use a macro to make impls a bit nicer

Future work:
- [ ] Actually™ use the trait when checking if a `const` generic type is allowed
- [ ] _Really_ refactor the surrounding code
- [ ] Refactor `marker.rs` into multiple modules for each "theme" of markers
2023-05-02 11:44:50 +05:30
..
rustc
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #110823 - compiler-errors:tweak-await-span, r=b-naber 2023-05-01 01:09:47 +02:00
rustc_ast_lowering Rollup merge of #110823 - compiler-errors:tweak-await-span, r=b-naber 2023-05-01 01:09:47 +02:00
rustc_ast_passes
rustc_ast_pretty Rollup merge of #111037 - Nilstrieb:close-the-offsetof, r=compiler-errors 2023-05-01 01:09:50 +02:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #110823 - compiler-errors:tweak-await-span, r=b-naber 2023-05-01 01:09:47 +02:00
rustc_builtin_macros Rollup merge of #111042 - Zalathar:no-coverage, r=wesleywiser 2023-05-01 17:10:24 +02:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm
rustc_codegen_ssa Rollup merge of #110586 - ChrisDenton:msvc-oem-output, r=workingjubilee 2023-04-30 01:14:55 +02:00
rustc_const_eval Rollup merge of #110823 - compiler-errors:tweak-await-span, r=b-naber 2023-05-01 01:09:47 +02:00
rustc_data_structures
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand
rustc_feature Auto merge of #106075 - nbdd0121:ffi-unwind, r=joshtriplett 2023-05-02 00:45:04 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #108161 - WaffleLapkin:const_param_ty, r=BoxyUwU 2023-05-02 11:44:50 +05:30
rustc_hir_analysis Rollup merge of #108161 - WaffleLapkin:const_param_ty, r=BoxyUwU 2023-05-02 11:44:50 +05:30
rustc_hir_pretty
rustc_hir_typeck
rustc_incremental
rustc_index
rustc_infer
rustc_interface Auto merge of #109611 - Zoxc:query-engine-rem, r=cjgillot 2023-04-29 21:58:13 +00:00
rustc_lexer
rustc_lint
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros
rustc_metadata
rustc_middle Auto merge of #111026 - compiler-errors:only-typeck-root, r=cjgillot 2023-05-01 06:58:49 +00:00
rustc_mir_build Rollup merge of #111015 - cjgillot:chained-let-and, r=compiler-errors 2023-05-01 01:09:48 +02:00
rustc_mir_dataflow
rustc_mir_transform Auto merge of #111066 - matthiaskrgr:rollup-4k6rj23, r=matthiaskrgr 2023-05-01 20:35:53 +00:00
rustc_monomorphize
rustc_parse Rollup merge of #110823 - compiler-errors:tweak-await-span, r=b-naber 2023-05-01 01:09:47 +02:00
rustc_parse_format
rustc_passes
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system Auto merge of #109611 - Zoxc:query-engine-rem, r=cjgillot 2023-04-29 21:58:13 +00:00
rustc_resolve Rollup merge of #110984 - cjgillot:const-infer-lifetime, r=compiler-errors 2023-04-30 01:14:59 +02:00
rustc_serialize
rustc_session Auto merge of #109611 - Zoxc:query-engine-rem, r=cjgillot 2023-04-29 21:58:13 +00:00
rustc_smir
rustc_span Rollup merge of #108161 - WaffleLapkin:const_param_ty, r=BoxyUwU 2023-05-02 11:44:50 +05:30
rustc_symbol_mangling
rustc_target Change ABI order in is_stable 2023-04-29 13:01:46 +01:00
rustc_trait_selection Rollup merge of #108161 - WaffleLapkin:const_param_ty, r=BoxyUwU 2023-05-02 11:44:50 +05:30
rustc_traits
rustc_transmute
rustc_ty_utils
rustc_type_ir