Remove calls to mem::forget
and mem::replace
in Option::get_or_insert_with
.#111301
Merged
bors merged 1 commit intorust-lang:masterfrom May 7, 2023
nullptrderef29:cleanup_option_insert_methods