[ty] Store un-widened type in Place#22093
Conversation
Diagnostic diff on typing conformance testsNo changes detected when running ty on typing conformance tests ✅ |
|
| ) | ||
| } | ||
| Type::Union(union) => { | ||
| // TODO: This is a hack. The proper fix is to avoid unioning Unknown from |
29355b5 to
07ba2f4
Compare
PlacePlace
| _, | ||
| _, | ||
| crate::place::Definedness::AlwaysDefined, | ||
| _, |
There was a problem hiding this comment.
It might be time for named fields...
There was a problem hiding this comment.
Now THAT I am capable of doing.
There was a problem hiding this comment.
But maybe wait for a review from someone more knowledgeable on the overall approach or doing it in a separate PR
carljm
left a comment
There was a problem hiding this comment.
The approach looks good here in general! I do think we need a bit of attention to ergonomics. Probably that's just named fields? We could add method(s) to return narrower views on the struct if most matches don't need all the fields, not sure if that's worth it. We can also do any of that as a separate follow-up PR.
07ba2f4 to
bf7f52f
Compare
## Summary Mechanical refactor to migrate this enum to named fields. No functional changes. See: #22093 (comment). --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
Summary
See: #22025 (comment)