-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup: Remove DefIndexAddressSpace
#60647
Conversation
@bors try for perf |
cleanup: Remove `DefIndexAddressSpace` The scheme with two address spaces for `DefIndex` was needed in the past, but apparently not needed anymore (after removing `DefId`s from locals and `HirId`-ification).
@Mark-Simulacrum |
Try doesn't require tests to pass (it's purely a dist build), so we should be fine if things build. |
@rust-timer build fe050c9 |
Success: Queued fe050c9 with parent e630580, comparison URL. |
Finished benchmarking try commit fe050c9 |
Thank you, @petrochenkov! Good riddance |
@bors r+ |
📌 Commit ee6d315 has been approved by |
⌛ Testing commit ee6d315 with merge 498d53ec9940685a18669a4ea6adddf0a34274fa... |
Note, this could probably be further simplified by using |
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry Android segfault |
…ister cleanup: Remove `DefIndexAddressSpace` The scheme with two address spaces for `DefIndex` was needed in the past, but apparently not needed anymore (after removing `DefId`s from locals and `HirId`-ification).
Rollup of 5 pull requests Successful merges: - #60601 (Add a `cast` method to raw pointers.) - #60638 (pin: make the to-module link more visible) - #60647 (cleanup: Remove `DefIndexAddressSpace`) - #60656 (Inline some Cursor calls for slices) - #60657 (Stabilize and re-export core::array in std) Failed merges: r? @ghost
index_to_key, | ||
def_path_hashes, | ||
index_to_key: Decodable::decode(d)?, | ||
def_path_hashes : Decodable::decode(d)?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this mean this impl
can now be auto-derived? Same for encoding.
buf.emit_raw_bytes(&self.positions[1]); | ||
LazySeq::with_position_and_length(pos as usize, | ||
(self.positions[0].len() + self.positions[1].len()) / 4 + 1) | ||
buf.emit_raw_bytes(&(self.positions.len() as u32 / 4).to_le_bytes()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unnecessary, since it indicated the split between lo/hi, which doesn't exist anymore.
@eddyb Yes, there's definitely further clean up possible now. |
@michaelwoerister I'll likely do it during the rebase of #59953. |
Auto-derive Encode and Decode implementations of DefPathTable See rust-lang#60647 (comment)
Auto-derive Encode and Decode implementations of DefPathTable See rust-lang#60647 (comment)
Auto-derive Encode and Decode implementations of DefPathTable See rust-lang#60647 (comment)
The scheme with two address spaces for
DefIndex
was needed in the past, but apparently not needed anymore (after removingDefId
s from locals andHirId
-ification).