Uh oh!
There was an error while loading. Please reload this page.
Continue work on associated const equality - #93285
Conversation
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
bors
commented
Jan 25, 2022
☔ The latest upstream changes (presumably #93095) made this pull request unmergeable. Please resolve the merge conflicts. |
Uh oh!
There was an error while loading. Please reload this page.
JulianKnodt
commented
Jan 26, 2022
Hm, after naively adding in |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
commented
Jan 27, 2022
☔ The latest upstream changes (presumably #93352) made this pull request unmergeable. Please resolve the merge conflicts. |
oli-obk
left a comment
There was a problem hiding this comment.
Yea, I like this a lot more than the previous version, thanks for trying it out!
You accidentally included a cargo submodule update.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Jan 27, 2022
Hmm... can you point me to the source of examples that you think are unreachable for constants (or is it just those that now have |
JulianKnodt
commented
Jan 27, 2022
It's mostly the points where there are |
8bda326 to
2d7af2dCompare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
JulianKnodt
commented
Feb 1, 2022
bors
commented
Feb 1, 2022
💡 This pull request was already approved, no need to approve it again.
|
bors
commented
Feb 1, 2022
📌 Commit 78fb74a has been approved by |
JulianKnodt
commented
Feb 1, 2022
I'm not sure if that's how it's done but I hope it's fine? |
@JulianKnodt it's |
bors
commented
Feb 1, 2022
@mati865: 🔑 Insufficient privileges: Not in reviewers |
oli-obk
commented
Feb 1, 2022
@bors r- |
oli-obk
commented
Feb 1, 2022
@bors r+ Sorry about the lack of instructions. |
bors
commented
Feb 1, 2022
📌 Commit 78fb74a has been approved by |
JulianKnodt
commented
Feb 1, 2022
my bad, I should've asked before just doing |
bors
commented
Feb 1, 2022
bors
commented
Feb 2, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Feb 2, 2022
Finished benchmarking commit (1ea4851): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
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 othertodo!()s which I think may not be hit.r? @oli-obk
Updates #92827