about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-11-13 22:43:38 -0800
committerGitHub <noreply@github.com>2024-11-13 22:43:38 -0800
commit966b8930e35e03577225ceb6dc70738e5a90dc97 (patch)
tree3da5f7196c2a5414131552382556b3e86f76dc02 /compiler/rustc_codegen_llvm/src
parent17dcadd587c52780e29b05d8e232dc384d9fad85 (diff)
parentf79eea106c5d05e706ccd101dee0606f384e224f (diff)
downloadrust-966b8930e35e03577225ceb6dc70738e5a90dc97.tar.gz
rust-966b8930e35e03577225ceb6dc70738e5a90dc97.zip
Rollup merge of #133004 - cuviper:unrecover-btree, r=ibraheemdev
btree: simplify the backdoor between set and map

The internal `btree::Recover` trait acted as a private API between
`BTreeSet` and `BTreeMap`, but we can use `pub(_)` restrictions these
days, and some of the methods don't need special handling anymore.

* `BTreeSet::get` can use `BTreeMap::get_key_value`
* `BTreeSet::take` can use `BTreeMap::remove_entry`
* `BTreeSet::replace` does need help, but this now uses a `pub(super)`
  method on `BTreeMap` instead of the trait.
* `btree::Recover` is now removed.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions