You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If two TypeIds of different types collide, we can get unsoundness, since Any relies on TypeId being unique for safe downcasts. We could have the compiler double check that any TypeIds it computes haven't occured before from another type.
The text was updated successfully, but these errors were encountered:
I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.
Fix source_range for INT_NUMBER in completion
fixrust-lang#17179.
Previously r-a use `TextRange::empty(self.position.offset)` as `source_range` for `INT_NUMBER`, so the `text_edit` would always be an insertion, which results in rust-lang#17179.
This PR changed it by using `text_range` of `original_token` (same as `IDENT`).
If two
TypeId
s of different types collide, we can get unsoundness, sinceAny
relies onTypeId
being unique for safe downcasts. We could have the compiler double check that anyTypeId
s it computes haven't occured before from another type.The text was updated successfully, but these errors were encountered: