mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:16:14 +03:00
ff86b27e7b
btree: avoid forcing the allocator to be a reference The previous code forces the actual allocator used to be some `&A`. This generalizes the code to allow any `A: Copy`. If people truly want to use a reference, they can use `&A` themselves. Fixes https://github.com/rust-lang/rust/issues/98176