mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-29 12:04:20 +00:00
[rustc_data_structures] Simplify SortedMap::insert. It looks like current usage of `swap` is aimed at achieving what `std::mem::replace` does but more concisely and idiomatically.