Skip to content

Commit

Permalink
Rollup merge of #82726 - ssomers:btree_node_rearange, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
BTree: move blocks around in node.rs

Without changing any names or implementation, reorder some members:
- Move down the ones defined long ago on the demised `struct Root`, to below the definition of their current host `struct NodeRef`.
- Move up some defined on `struct NodeRef` that are interspersed with those defined on `struct Handle`.
- Move up the `correct_…` methods squeezed between the two flavours of `push`.
- Move the unchecked static downcasts (`cast_to_…`) after the upcasts (`forget_`) and the (weirdly named) dynamic downcasts (`force`).
r? ````@Mark-Simulacrum````
  • Loading branch information
Dylan-DPC authored Apr 4, 2021
2 parents 869726d + e7f340e commit 6c13556
Showing 1 changed file with 165 additions and 167 deletions.
Loading

0 comments on commit 6c13556

Please sign in to comment.