about summary refs log tree commit diff
path: root/src/test/rustdoc/src-links-auto-impls.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-01 23:18:01 +0000
committerbors <bors@rust-lang.org>2022-02-01 23:18:01 +0000
commit1ea4851715893ee3f365a8ef09d47165e9a7864f (patch)
tree51abd81d7ec00e252eda25cd53e5481be292ba64 /src/test/rustdoc/src-links-auto-impls.rs
parent2681f253bcdb31a274411d2be456e7c6a1c67d62 (diff)
parent78fb74a6005642bca0a3da7016f9edbbd99f1846 (diff)
downloadrust-1ea4851715893ee3f365a8ef09d47165e9a7864f.tar.gz
rust-1ea4851715893ee3f365a8ef09d47165e9a7864f.zip
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
Diffstat (limited to 'src/test/rustdoc/src-links-auto-impls.rs')
0 files changed, 0 insertions, 0 deletions