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.
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.
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
DefIndexwas needed in the past, but apparently not needed anymore (after removingDefIds from locals andHirId-ification).