]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #77851 - exrook:split-btreemap, r=dtolnay
authorYuki Okushi <huyuumi.dev@gmail.com>
Sat, 17 Oct 2020 19:11:07 +0000 (04:11 +0900)
committerGitHub <noreply@github.com>
Sat, 17 Oct 2020 19:11:07 +0000 (04:11 +0900)
commita0242e73bbaee822a868449f7b9f4a0227fe605f
tree0811a3093033fa5d46d5605de0fc03f5525af188
parent83ee3198220b9738f6e4f04bfbdcf3481d5c7b59
parent3e2121cb4aadb70ad7921ffe36985af98dfe9ae6
Rollup merge of #77851 - exrook:split-btreemap, r=dtolnay

BTreeMap: refactor Entry out of map.rs into its own file

btree/map.rs is approaching the 3000 line mark, splitting out the entry
code buys about 500 lines of headroom.

I've created this PR because the changes I've made in #77438 will push `map.rs` over the 3000 line limit and cause tidy to complain.

I picked `Entry` to factor out because it feels less tightly coupled to the rest of `BTreeMap` than the various iterator implementations.

Related: #60302