rust/compiler/rustc_hir/src
bors 1ea4851715 Auto merge of #93285 - JulianKnodt:const_eq_2, r=oli-obk
Continue work on associated const equality

This actually implements some more complex logic for assigning associated consts to values.
Inside of projection candidates, it now defers to a separate function for either consts or
types. To reduce amount of code, projections are now generic over T, where T is either a Type or
a Const. I can add some comments back later, but this was the fastest way to implement it.

It also now finds the correct type of consts in type_of.

---

The current main TODO is finding the const of the def id for the LeafDef.

Right now it works if the function isn't called, but once you use the trait impl with the bound it fails inside projection.
I was hoping to get some help in getting the `&'tcx ty::Const<'tcx>`, in addition to a bunch of other `todo!()`s which I think may not be hit.

r? `@oli-obk`

Updates #92827
2022-02-01 23:18:01 +00:00
..
arena.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
def_path_hash_map.rs Use on-disk-hash-table format for DefPathHashMap in hir::definitions. 2021-09-14 13:54:41 +02:00
def.rs Remove invalid doc links. 2021-12-13 20:40:17 +00:00
definitions.rs Store def_id_to_hir_id as variant in hir_owner. 2022-01-27 10:46:40 -03:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
hir_id.rs Store def_id_to_hir_id as variant in hir_owner. 2022-01-27 10:46:40 -03:00
hir.rs Auto merge of #93285 - JulianKnodt:const_eq_2, r=oli-obk 2022-02-01 23:18:01 +00:00
intravisit.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
itemlikevisit.rs Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
lang_items.rs Change TerminatorKind::Abort to call the panic handler instead of 2022-01-17 00:39:34 +00:00
lib.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
pat_util.rs Simplify for loop desugar 2021-11-21 08:15:21 -06:00
stable_hash_impls.rs Store hir_id_to_def_id in OwnerInfo. 2022-01-25 15:05:19 -03:00
target.rs Treat macros as HIR items 2021-08-28 00:16:34 -07:00
tests.rs Revert "Revert "Fix test"" 2021-07-06 11:28:06 +02:00
weak_lang_items.rs Clean up lang_items::extract 2022-01-09 13:41:04 -08:00