mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
a902550233
[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.