rust/compiler
bors e217f94917 Auto merge of #134122 - oli-obk:push-zqnyznxtpnll, r=petrochenkov
Move impl constness into impl trait header

This PR is kind of the opposite of the rejected https://github.com/rust-lang/rust/pull/134114

Instead of moving more things into the `constness` query, we want to keep them where their corresponding hir nodes are lowered. So I gave this a spin for impls, which have an obvious place to be (the impl trait header). And surprisingly it's also a perf improvement (likely just slightly better query & cache usage).

The issue was that removing anything from the `constness` query makes it just return `NotConst`, which is wrong. So I had to change it to `bug!` out if used wrongly, and only then remove the impl blocks from the `constness` query. I think this change is good in general, because it makes using `constness` more robust (as can be seen by how few sites that had to be changed, so it was almost solely used specifically for the purpose of asking for functions' constness). The main thing where this change was not great was in clippy, which was using the `constness` query as a general DefId -> constness map. I added a `DefKind` filter in front of that. If it becomes a more common pattern we can always move that helper into rustc.
2024-12-13 16:17:34 +00: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
rustc_arena
rustc_ast allow symbol_intern_string_literal lint in test modules 2024-12-11 20:38:55 +03:00
rustc_ast_ir
rustc_ast_lowering review comments: rewordings 2024-12-09 21:55:13 +00:00
rustc_ast_passes Stabilize async closures 2024-12-13 00:04:56 +00:00
rustc_ast_pretty Rollup merge of #133424 - Nadrieril:guard-patterns-parsing, r=fee1-dead 2024-12-08 17:18:50 +01:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
rustc_builtin_macros Disallow #[default] Variant {} regardless of feature flag 2024-12-09 21:55:13 +00:00
rustc_codegen_cranelift Rollup merge of #134008 - jswrenn:unsafe-fields-copy, r=compiler-errors 2024-12-10 13:51:10 +01:00
rustc_codegen_gcc Auto merge of #128004 - folkertdev:naked-fn-asm, r=Amanieu 2024-12-11 21:51:07 +00:00
rustc_codegen_llvm Fix our llvm::Bool typedef to be signed, to match LLVMBool 2024-12-12 20:54:33 +11:00
rustc_codegen_ssa Auto merge of #129181 - beetrees:asm-spans, r=pnkfelix,compiler-errors 2024-12-12 02:34:06 +00:00
rustc_const_eval Move impl constness into impl trait header 2024-12-12 20:06:03 +00:00
rustc_data_structures Assert that obligations are empty before deeply normalizing 2024-12-02 22:51:18 +00:00
rustc_driver
rustc_driver_impl Use ensure for analysis calls 2024-12-08 16:57:09 +00:00
rustc_error_codes Auto merge of #132706 - compiler-errors:async-closures, r=oli-obk 2024-12-13 00:37:51 +00:00
rustc_error_messages
rustc_errors Rollup merge of #134187 - nnethercote:rm-PErr, r=jieyouxu 2024-12-12 08:07:05 +01:00
rustc_expand Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
rustc_feature Stabilize async closures 2024-12-13 00:04:56 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #134122 - oli-obk:push-zqnyznxtpnll, r=petrochenkov 2024-12-13 16:17:34 +00:00
rustc_hir_analysis Auto merge of #134122 - oli-obk:push-zqnyznxtpnll, r=petrochenkov 2024-12-13 16:17:34 +00:00
rustc_hir_pretty Remove more traces of anonymous ADTs 2024-12-10 19:50:47 +00:00
rustc_hir_typeck Auto merge of #132706 - compiler-errors:async-closures, r=oli-obk 2024-12-13 00:37:51 +00:00
rustc_incremental Remove all threading through of ErrorGuaranteed from the driver 2024-12-06 18:42:31 +00:00
rustc_index Use BitSet in SparseBitMatrix. 2024-12-09 08:53:33 +11:00
rustc_index_macros
rustc_infer Assert that obligations are empty before deeply normalizing 2024-12-02 22:51:18 +00:00
rustc_interface Rollup merge of #133567 - bjorn3:various_cleanups, r=cjgillot 2024-12-09 01:56:32 +01:00
rustc_lexer Add test to check unicode identifier version 2024-12-09 06:23:59 -08:00
rustc_lint Stabilize async closures 2024-12-13 00:04:56 +00:00
rustc_lint_defs Actually walk into lifetimes and attrs in EarlyContextAndPass 2024-12-07 02:08:40 +00:00
rustc_llvm Auto merge of #129181 - beetrees:asm-spans, r=pnkfelix,compiler-errors 2024-12-12 02:34:06 +00:00
rustc_log
rustc_macros
rustc_metadata Move impl constness into impl trait header 2024-12-12 20:06:03 +00:00
rustc_middle Auto merge of #134122 - oli-obk:push-zqnyznxtpnll, r=petrochenkov 2024-12-13 16:17:34 +00:00
rustc_mir_build review comments: rewordings 2024-12-09 21:55:13 +00:00
rustc_mir_dataflow Simplify rustc_mir_dataflow::abs_domain. 2024-12-11 10:45:47 +11:00
rustc_mir_transform Auto merge of #133899 - scottmcm:strip-mir-debuginfo, r=oli-obk 2024-12-13 08:32:20 +00:00
rustc_monomorphize Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
rustc_next_trait_solver Rename projection_def_id to item_def_id 2024-12-11 00:59:43 +00:00
rustc_parse Stabilize async closures 2024-12-13 00:04:56 +00:00
rustc_parse_format
rustc_passes Remove more traces of anonymous ADTs 2024-12-10 19:50:47 +00:00
rustc_pattern_analysis
rustc_privacy Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
rustc_query_impl Remove 'tcx lifetime from OnDiskCache 2024-12-06 18:41:50 +00:00
rustc_query_system Make sure to record deps from cached task in new solver on first run 2024-12-04 16:15:44 +00:00
rustc_resolve review comments: rewordings 2024-12-09 21:55:13 +00:00
rustc_sanitizers Remove more traces of anonymous ADTs 2024-12-10 19:50:47 +00:00
rustc_serialize
rustc_session Auto merge of #133899 - scottmcm:strip-mir-debuginfo, r=oli-obk 2024-12-13 08:32:20 +00:00
rustc_smir Fix ui-fulldep tests 2024-12-06 18:42:31 +00:00
rustc_span Rollup merge of #133122 - compiler-errors:afidt, r=oli-obk 2024-12-12 19:00:41 +01:00
rustc_symbol_mangling Remove more traces of anonymous ADTs 2024-12-10 19:50:47 +00:00
rustc_target Rollup merge of #133249 - heiher:loong-abi-check, r=workingjubilee 2024-12-12 19:00:42 +01:00
rustc_trait_selection Auto merge of #134122 - oli-obk:push-zqnyznxtpnll, r=petrochenkov 2024-12-13 16:17:34 +00:00
rustc_traits
rustc_transmute
rustc_ty_utils Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
rustc_type_ir Rename projection_def_id to item_def_id 2024-12-11 00:59:43 +00:00
rustc_type_ir_macros
stable_mir