Handle nontype const inherent associated consts#156721
Conversation
|
changes to the core type system cc @lcnr |
|
r? @Kivooeo rustbot has assigned @Kivooeo. Use Why was this reviewer chosen?The reviewer was selected based on:
|
895efc4 to
037369e
Compare
|
Not confident in reviewing const stuff @BoxyUwU could you take a look when you have time please |
|
r? BoxyUwU |
|
☔ The latest upstream changes (presumably #157094) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I need to do some thinking about how this fits into the long term plans for proper IAT/IAC support, the idea here of representing non-type consts as I think it would need to look a little different than the current PR as we won't want to implicitly change stuff when converting to/from I'll try and remind myself of some of the subtle issues we ran into when originally trying to support IACs in |
just fyi, there's several tests here already, for example, https://github.com/rust-lang/rust/blob/main/tests/ui/const-generics/gca/path-to-non-type-inherent-associated-const.rs |
|
thinking on this more, while I think a stop-gap solution along these lines would be workable it's not clear to me that it's worth doing given @khyperia is working on a more involved change to our handling of inherent associated types/consts/typeconsts. especially since this PR would need some fairly extensive changes to be that stop-gap solution 🤔 I am, unfortunately, gonna close this PR due to this but that's not reflective of your work :3 generally though, thanks for taking an interest in this and I can find you some other const generics stuff to work on if you'd like :3 if you haven't already come say hi on the #project-const-generics zulip stream |
Keep non
type constinherent associated consts as unevaluated consts instead, so they are evaluated normally rather than normalized as projections.Closes #148063