diff options
| author | Josh Stone <jistone@redhat.com> | 2024-11-13 11:29:32 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2024-11-13 11:29:32 -0800 |
| commit | f79eea106c5d05e706ccd101dee0606f384e224f (patch) | |
| tree | 12c61f877de94cb2612bca0c17c9b19171134192 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | a00df61387e5389d6fe23e38e657f90d672668b1 (diff) | |
| download | rust-f79eea106c5d05e706ccd101dee0606f384e224f.tar.gz rust-f79eea106c5d05e706ccd101dee0606f384e224f.zip | |
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/errors.rs')
0 files changed, 0 insertions, 0 deletions
